Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy on rust update #1886

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions crates/burn-derive/src/shared/attribute.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use syn::{Attribute, Ident, Meta};
use syn::{Attribute, Meta};

pub struct AttributeAnalyzer {
attr: Attribute,
}

#[derive(Clone)]
pub struct AttributeItem {
pub ident: Ident,
pub value: syn::Lit,
}

Expand All @@ -27,10 +26,7 @@ impl AttributeAnalyzer {
_ => panic!("Only literal is supported"),
};

AttributeItem {
ident: value.path.get_ident().unwrap().clone(),
value: lit,
}
AttributeItem { value: lit }
}

pub fn has_name(&self, name: &str) -> bool {
Expand Down
2 changes: 0 additions & 2 deletions crates/burn-fusion/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use std::sync::Arc;
pub struct FusionServer<R: FusionRuntime> {
streams: MultiStream<R>,
pub(crate) handles: HandleContainer<R::FusionHandle>,
pub device: R::FusionDevice,
}

impl<R> FusionServer<R>
Expand All @@ -22,7 +21,6 @@ where
Self {
streams: MultiStream::new(device.clone()),
handles: HandleContainer::new(),
device,
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/burn-ndarray/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ macro_rules! make_elem {

#[inline(always)]
fn int_abs_elem(self) -> Self {
(self as i32).abs() as $ty
(self as i32).unsigned_abs() as $ty
}
}
};
Expand Down
Loading