diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:20:17 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:21:55 -0400 |
| commit | f670dafb8a89d8a1294ceab10318454e394c1cec (patch) | |
| tree | eda13d7de5a1b3705d224bcba3f053f0ed33f955 /src/build.rs | |
| parent | 275327041b4ce5cac6e1adabc813ece54c646cd6 (diff) | |
| download | xesite-f670dafb8a89d8a1294ceab10318454e394c1cec.tar.xz xesite-f670dafb8a89d8a1294ceab10318454e394c1cec.zip | |
clippy auto-fixes
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'src/build.rs')
| -rw-r--r-- | src/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.rs b/src/build.rs index d2fb8e2..ec42c41 100644 --- a/src/build.rs +++ b/src/build.rs @@ -5,7 +5,7 @@ fn main() -> Result<()> { Ructe::from_env()?.compile_templates("templates")?; let output = Command::new("git") - .args(&["rev-parse", "HEAD"]) + .args(["rev-parse", "HEAD"]) .output() .unwrap(); @@ -16,7 +16,7 @@ fn main() -> Result<()> { println!( "cargo:rustc-env=GITHUB_SHA={}", if git_hash.as_str() == "" { - out.into() + out } else { git_hash } |
