1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

Fix clippy lints

This commit is contained in:
V 2024-05-03 03:47:02 +02:00 committed by Wez Furlong
parent 48fa4ca497
commit 296f88675f
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -8,7 +8,7 @@ fn main() {
let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
let target = env::var("TARGET").unwrap();
let mut file = File::create(&dest.join("egl_bindings.rs")).unwrap();
let mut file = File::create(dest.join("egl_bindings.rs")).unwrap();
let reg = Registry::new(
Api::Egl,
(1, 5),
@ -43,13 +43,13 @@ fn main() {
}
if target.contains("windows") {
let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap();
let mut file = File::create(dest.join("wgl_bindings.rs")).unwrap();
let reg = Registry::new(Api::Wgl, (1, 0), Profile::Core, Fallbacks::All, []);
reg.write_bindings(gl_generator::StructGenerator, &mut file)
.unwrap();
let mut file = File::create(&dest.join("wgl_extra_bindings.rs")).unwrap();
let mut file = File::create(dest.join("wgl_extra_bindings.rs")).unwrap();
Registry::new(
Api::Wgl,
(1, 0),