Skip to content

Commit

Permalink
Enable and fix extra lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored and bendk committed Oct 7, 2022
1 parent f678714 commit 293766c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions uniffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
//! In addition to the core `FfiConverter` trait, we provide a handful of struct definitions useful
//! for passing core rust types over the FFI, such as [`RustBuffer`].

#![warn(rust_2018_idioms, unused_qualifications)]

use anyhow::bail;
use bytes::buf::{Buf, BufMut};
use paste::paste;
Expand Down
10 changes: 5 additions & 5 deletions uniffi_bindgen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
//! to load and use the compiled rust code via its C-compatible FFI.
//!

#![warn(rust_2018_idioms)]
#![warn(rust_2018_idioms, unused_qualifications)]
#![allow(unknown_lints)]

const BINDGEN_VERSION: &str = env!("CARGO_PKG_VERSION");
Expand Down Expand Up @@ -229,7 +229,7 @@ pub trait BindingGenerator: Sized {
ci: ComponentInterface,
config: Self::Config,
out_dir: &Utf8Path,
) -> anyhow::Result<()>;
) -> Result<()>;
}

/// Generate bindings for an external binding generator
Expand Down Expand Up @@ -596,7 +596,7 @@ pub fn run_main() -> Result<()> {
config,
lib_file,
udl_file,
} => crate::generate_bindings(
} => generate_bindings(
udl_file,
config.as_deref(),
language.iter().map(String::as_str).collect(),
Expand All @@ -609,7 +609,7 @@ pub fn run_main() -> Result<()> {
config,
no_format,
udl_file,
} => crate::generate_component_scaffolding(
} => generate_component_scaffolding(
udl_file,
config.as_deref(),
out_dir.as_deref(),
Expand All @@ -620,7 +620,7 @@ pub fn run_main() -> Result<()> {
udl_file,
test_scripts,
config,
} => crate::run_tests(library_file, &[udl_file], test_scripts, config.as_deref()),
} => run_tests(library_file, &[udl_file], test_scripts, config.as_deref()),
Commands::PrintJson { path } => print_json(path),
}?;
Ok(())
Expand Down

0 comments on commit 293766c

Please sign in to comment.