aboutsummaryrefslogtreecommitdiff
path: root/alacritty/build.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2022-10-12 04:40:46 +0000
committerGitHub <noreply@github.com>2022-10-12 07:40:46 +0300
commit21c75d9d94e1a338501d2011f17710ff5174ac01 (patch)
tree310d88754f399dc0fe4f8abdc68ba2d4097bdefd /alacritty/build.rs
parent182086f59c0148508c31d359eaee2cfef059f45c (diff)
downloadr-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.rs4
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())