Skip to content

Commit

Permalink
Apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
danyspin97 committed Apr 16, 2024
1 parent cfab904 commit cd9eb31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions cli/build.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -47,4 +47,3 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

Ok(())
}

15 changes: 4 additions & 11 deletions daemon/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -50,16 +50,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

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(())
}

0 comments on commit cd9eb31

Please sign in to comment.