aya-gen: fix lint 👀

pull/313/head
Alessandro Decina 2 years ago
parent e675e51bd9
commit cffff273a1

@ -8,7 +8,7 @@ pub mod bindgen;
pub mod generate; pub mod generate;
pub mod rustfmt; pub mod rustfmt;
pub use generate::{InputFile, generate}; pub use generate::{generate, InputFile};
pub fn write_to_file<T: AsRef<Path>>(path: T, code: &str) -> Result<(), io::Error> { pub fn write_to_file<T: AsRef<Path>>(path: T, code: &str) -> Result<(), io::Error> {
let mut file = File::create(path)?; let mut file = File::create(path)?;

Loading…
Cancel
Save