Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-rsm-McKenzie committed Jan 24, 2024
1 parent 67a4cbc commit ac54a5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ macro_rules! key {
pub name: ::bstr::BString,
}

// false positive
#[allow(clippy::unconditional_recursion)]
impl ::core::cmp::PartialEq for $this {
fn eq(&self, other: &Self) -> bool {
self.hash.eq(&other.hash)
Expand Down
5 changes: 4 additions & 1 deletion src/fo4/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,10 @@ impl<'bytes> File<'bytes> {
misc_flags: if (dx10.flags & 1) == 0 {
0
} else {
TEX_MISC_FLAG::TEX_MISC_TEXTURECUBE.bits().try_into()?
#[allow(clippy::useless_conversion)]
{
TEX_MISC_FLAG::TEX_MISC_TEXTURECUBE.bits().try_into()?
}
},
misc_flags2: 0,
format: u32::from(dx10.format).into(),
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
clippy::single_char_lifetime_names,
clippy::std_instead_of_core
)]
#![allow(clippy::enum_glob_use, clippy::missing_errors_doc)]
#![allow(
clippy::enum_glob_use,
clippy::missing_errors_doc,
clippy::struct_field_names
)]

mod cc;
mod containers;
Expand Down

0 comments on commit ac54a5a

Please sign in to comment.