mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
Fix cli clippy lints (#681)
The second in a series of PRs that aim to get CI passing
This commit is contained in:
@@ -24,7 +24,7 @@ impl FmtProjectCommand {
|
||||
let serialized = serde_json::to_string_pretty(&project)
|
||||
.context("could not re-encode project file as JSON")?;
|
||||
|
||||
fs_err::write(&project.file_location, &serialized)
|
||||
fs_err::write(&project.file_location, serialized)
|
||||
.context("could not write back to project file")?;
|
||||
|
||||
Ok(())
|
||||
|
||||
@@ -184,7 +184,7 @@ fn try_git_init(path: &Path, git_ignore: &str) -> Result<(), anyhow::Error> {
|
||||
/// already inside a Git repository.
|
||||
fn should_git_init(path: &Path) -> bool {
|
||||
let result = Command::new("git")
|
||||
.args(&["rev-parse", "--is-inside-work-tree"])
|
||||
.args(["rev-parse", "--is-inside-work-tree"])
|
||||
.stdout(Stdio::null())
|
||||
.stderr(Stdio::null())
|
||||
.current_dir(path)
|
||||
|
||||
@@ -39,7 +39,7 @@ impl ServeCommand {
|
||||
|
||||
let vfs = Vfs::new_default();
|
||||
|
||||
let session = Arc::new(ServeSession::new(vfs, &project_path)?);
|
||||
let session = Arc::new(ServeSession::new(vfs, project_path)?);
|
||||
|
||||
let ip = self
|
||||
.address
|
||||
|
||||
@@ -176,7 +176,7 @@ fn do_upload_open_cloud(
|
||||
|
||||
log::debug!("Uploading to Roblox...");
|
||||
let response = client
|
||||
.post(&url)
|
||||
.post(url)
|
||||
.header("x-api-key", api_key)
|
||||
.header(CONTENT_TYPE, "application/xml")
|
||||
.header(ACCEPT, "application/json")
|
||||
|
||||
Reference in New Issue
Block a user