Skip to content

Commit

Permalink
fixes and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Jan 30, 2025
1 parent a9fb8a0 commit ab60a63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions linalg/src/frame/block_quant/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use super::{BlockQuant, PackedBlockQuantFormat};
use tract_data::internal::*;
use tract_data::TVec;

#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Hash)]
pub struct BlockQuantFact {
pub format: Box<dyn BlockQuant>,
Expand Down
3 changes: 2 additions & 1 deletion linalg/src/frame/mmm/input_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ impl OpaquePayload for Box<dyn MMMInputValue> {
fn same_as(&self, other: &dyn OpaquePayload) -> bool {
other
.downcast_ref::<Self>()
.is_some_and(|other| (*self).same_as(other))
.is_some_and(|other| (&**self as &dyn MMMInputValue).same_as(&**other))
}
}

#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Hash, Debug)]
pub struct PackedOpaqueFact {
pub format: Box<dyn MMMInputFormat>,
Expand Down
1 change: 1 addition & 0 deletions linalg/src/frame/mmm/panel_extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use super::{EagerPackedInput, MMMInputFormat, MMMInputValue};

type Kernel = unsafe fn(input: *const u8, output: *mut u8, k: usize);

#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Hash, Clone)]
pub struct PanelExtractor {
pub name: String,
Expand Down

0 comments on commit ab60a63

Please sign in to comment.