diff options
author | Christian Duerr <contact@christianduerr.com> | 2022-10-12 04:40:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 07:40:46 +0300 |
commit | 21c75d9d94e1a338501d2011f17710ff5174ac01 (patch) | |
tree | 310d88754f399dc0fe4f8abdc68ba2d4097bdefd /alacritty/build.rs | |
parent | 182086f59c0148508c31d359eaee2cfef059f45c (diff) | |
download | r-alacritty-21c75d9d94e1a338501d2011f17710ff5174ac01.tar.gz r-alacritty-21c75d9d94e1a338501d2011f17710ff5174ac01.tar.bz2 r-alacritty-21c75d9d94e1a338501d2011f17710ff5174ac01.zip |
Fix clippy warnings
This patch applies all clippy lints currently present on the latest
clippy master than are compatible with our oldstable clippy (only
exception is the `_else(||` stuff).
Diffstat (limited to 'alacritty/build.rs')
-rw-r--r-- | alacritty/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/build.rs b/alacritty/build.rs index 991c7fc7..b1f0537b 100644 --- a/alacritty/build.rs +++ b/alacritty/build.rs @@ -13,7 +13,7 @@ fn main() { println!("cargo:rustc-env=VERSION={}", version); let dest = env::var("OUT_DIR").unwrap(); - let mut file = File::create(&Path::new(&dest).join("gl_bindings.rs")).unwrap(); + let mut file = File::create(Path::new(&dest).join("gl_bindings.rs")).unwrap(); Registry::new(Api::Gl, (3, 3), Profile::Core, Fallbacks::All, ["GL_ARB_blend_func_extended"]) .write_bindings(GlobalGenerator, &mut file) @@ -25,7 +25,7 @@ fn main() { fn commit_hash() -> Option<String> { Command::new("git") - .args(&["rev-parse", "--short", "HEAD"]) + .args(["rev-parse", "--short", "HEAD"]) .output() .ok() .filter(|output| output.status.success()) |