Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
(i don't know rust, things seem to still work?)
  • Loading branch information
ellotheth authored and wantguns committed Aug 18, 2023
1 parent 3598e6b commit e8fac0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::process::Command;
fn main() {
let output = Command::new("git")
.args(&["rev-parse", "HEAD"])
.args(["rev-parse", "HEAD"])
.output()
.unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/routes/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub async fn submit(paste: Form<PasteIdForm>) -> Redirect {
let content = &paste.content;
let ext = &paste.ext;

fs::write(&filepath, content).expect("Unable to write to the file");
fs::write(filepath, content).expect("Unable to write to the file");

Redirect::to(format!("/p/{id}.{ext}", id = id, ext = ext))
}

0 comments on commit e8fac0f

Please sign in to comment.