Fix cli clippy lints (#681)

The second in a series of PRs that aim to get CI passing
This commit is contained in:
Kenneth Loeffler
2023-06-30 11:03:37 -07:00
committed by GitHub
parent 2507e096b7
commit b7a1f82f56
4 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ impl FmtProjectCommand {
let serialized = serde_json::to_string_pretty(&project) let serialized = serde_json::to_string_pretty(&project)
.context("could not re-encode project file as JSON")?; .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")?; .context("could not write back to project file")?;
Ok(()) Ok(())

View File

@@ -184,7 +184,7 @@ fn try_git_init(path: &Path, git_ignore: &str) -> Result<(), anyhow::Error> {
/// already inside a Git repository. /// already inside a Git repository.
fn should_git_init(path: &Path) -> bool { fn should_git_init(path: &Path) -> bool {
let result = Command::new("git") let result = Command::new("git")
.args(&["rev-parse", "--is-inside-work-tree"]) .args(["rev-parse", "--is-inside-work-tree"])
.stdout(Stdio::null()) .stdout(Stdio::null())
.stderr(Stdio::null()) .stderr(Stdio::null())
.current_dir(path) .current_dir(path)

View File

@@ -39,7 +39,7 @@ impl ServeCommand {
let vfs = Vfs::new_default(); 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 let ip = self
.address .address

View File

@@ -176,7 +176,7 @@ fn do_upload_open_cloud(
log::debug!("Uploading to Roblox..."); log::debug!("Uploading to Roblox...");
let response = client let response = client
.post(&url) .post(url)
.header("x-api-key", api_key) .header("x-api-key", api_key)
.header(CONTENT_TYPE, "application/xml") .header(CONTENT_TYPE, "application/xml")
.header(ACCEPT, "application/json") .header(ACCEPT, "application/json")