Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsimard committed Jul 27, 2024
1 parent eec425e commit 0a19917
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/cubecl-core/src/compute/kernel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ source:
}

fn format_str(kernel_id: &str, markers: &[(char, char)], include_space: bool) -> String {
let kernel_id = format!("{}", kernel_id);
let kernel_id = kernel_id.to_string();
let mut result = String::new();
let mut depth = 0;
let indendation = 4;
Expand All @@ -101,7 +101,7 @@ fn format_str(kernel_id: &str, markers: &[(char, char)], include_space: bool) ->
result.push(' ');
}
result.push(start);
result.push_str("\n");
result.push('\n');
result.push_str(&" ".repeat(indendation * depth));
found_marker = true;
} else if c == end {
Expand Down
3 changes: 2 additions & 1 deletion crates/cubecl-core/src/frontend/element/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ pub trait Int:

macro_rules! impl_int {
($type:ident, $primitive:ty) => {
#[derive(Clone, Copy)]
#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Copy, Hash)]
pub struct $type {
pub val: $primitive,
pub vectorization: u8,
Expand Down
1 change: 1 addition & 0 deletions crates/cubecl-core/src/frontend/element/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use super::{
ScalarArgSettings, Vectorized, __expand_new, __expand_vectorized,
};

#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Copy, Hash)]
/// An unsigned int.
/// Preferred for indexing operations
Expand Down

0 comments on commit 0a19917

Please sign in to comment.