made clippy happy

This commit is contained in:
MaxOhn
2024-02-23 14:25:26 +01:00
parent 08e5d52006
commit 2dafb18a88
2 changed files with 3 additions and 6 deletions
+1 -4
View File
@@ -102,10 +102,7 @@ impl DifficultyValues {
} }
} }
Self { Self { peaks, max_combo }
peaks,
max_combo: max_combo as u32,
}
} }
pub fn eval( pub fn eval(
+2 -2
View File
@@ -76,7 +76,7 @@ mod inner {
} }
impl<T> Ref<'_, T> { impl<T> Ref<'_, T> {
pub fn map<U: ?Sized, F>(orig: Ref<'_, T>, f: F) -> RefWrap<'_, T, U, F> pub const fn map<U: ?Sized, F>(orig: Ref<'_, T>, f: F) -> RefWrap<'_, T, U, F>
where where
F: Copy + FnOnce(&T) -> &U, F: Copy + FnOnce(&T) -> &U,
{ {
@@ -143,7 +143,7 @@ impl<T: fmt::Debug> fmt::Debug for Weak<T> {
/// std::thread::spawn(move || { let _ = gradual.next(); }); /// std::thread::spawn(move || { let _ = gradual.next(); });
/// ``` /// ```
#[cfg(not(feature = "sync"))] #[cfg(not(feature = "sync"))]
fn _share_gradual_taiko() {} const fn _share_gradual_taiko() {}
#[cfg(all(test, feature = "sync"))] #[cfg(all(test, feature = "sync"))]
mod tests { mod tests {