made clippy happy
This commit is contained in:
@@ -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
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user