From cd9eb31377da0029e6abfbf6e7f433476f50007e Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Tue, 16 Apr 2024 10:21:51 +0200 Subject: [PATCH] Apply cargo fmt --- cli/build.rs | 3 +-- daemon/build.rs | 15 ++++----------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/cli/build.rs b/cli/build.rs index 914fac1..e2ba744 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -1,7 +1,7 @@ use std::env; use std::fs::File; -use std::path::Path; use std::io::Error; +use std::path::Path; use clap::{CommandFactory, ValueEnum}; use clap_complete::{generate_to, Shell}; @@ -47,4 +47,3 @@ fn main() -> Result<(), Box> { Ok(()) } - diff --git a/daemon/build.rs b/daemon/build.rs index a977f68..6303369 100644 --- a/daemon/build.rs +++ b/daemon/build.rs @@ -3,8 +3,8 @@ extern crate gl_generator; use gl_generator::{Api, Fallbacks, Profile, Registry, StructGenerator}; use std::env; use std::fs::File; -use std::path::Path; use std::io::Error; +use std::path::Path; use clap::{CommandFactory, ValueEnum}; use clap_complete::{generate_to, Shell}; @@ -50,16 +50,9 @@ fn main() -> Result<(), Box> { let mut file = File::create(Path::new(&outdir).join("gl_bindings.rs")).unwrap(); - Registry::new( - Api::Gles2, - (3, 2), - Profile::Core, - Fallbacks::All, - [], - ) - .write_bindings(StructGenerator, &mut file) - .unwrap(); + Registry::new(Api::Gles2, (3, 2), Profile::Core, Fallbacks::All, []) + .write_bindings(StructGenerator, &mut file) + .unwrap(); Ok(()) } -