clippy fixes

(i don't know rust, things seem to still work?)
This commit is contained in:
ellotheth
2023-08-17 22:09:05 +02:00
committed by Gunwant Jain
parent 3598e6bd91
commit e8fac0f0c8
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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))
}