made clippy quiet
This commit is contained in:
@@ -168,6 +168,7 @@ impl GradualPerformance {
|
||||
}
|
||||
|
||||
/// Returns the amount of remaining objects.
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
pub fn len(&self) -> usize {
|
||||
match self {
|
||||
GradualPerformance::Osu(gradual) => gradual.len(),
|
||||
|
||||
@@ -130,6 +130,7 @@ impl CatchGradualPerformance {
|
||||
}
|
||||
|
||||
/// Returns the amount of remaining objects.
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
pub fn len(&self) -> usize {
|
||||
self.difficulty.len()
|
||||
}
|
||||
|
||||
@@ -112,6 +112,7 @@ impl ManiaGradualPerformance {
|
||||
}
|
||||
|
||||
/// Returns the amount of remaining objects.
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
pub fn len(&self) -> usize {
|
||||
self.difficulty.len()
|
||||
}
|
||||
|
||||
@@ -122,6 +122,7 @@ impl OsuGradualPerformance {
|
||||
}
|
||||
|
||||
/// Returns the amount of remaining objects.
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
pub fn len(&self) -> usize {
|
||||
self.difficulty.len()
|
||||
}
|
||||
|
||||
@@ -121,6 +121,7 @@ impl TaikoGradualPerformance {
|
||||
}
|
||||
|
||||
/// Returns the amount of remaining objects.
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
pub fn len(&self) -> usize {
|
||||
self.difficulty.len()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user