forked from Deuxfleurs/garage
Fix fmt
This commit is contained in:
parent
8e93d69974
commit
c56794655e
2 changed files with 2 additions and 2 deletions
|
@ -269,7 +269,7 @@ impl CountedItem for K2VItem {
|
||||||
&self.partition.partition_key
|
&self.partition.partition_key
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::bool_to_int_with_if)]
|
#[allow(clippy::bool_to_int_with_if)]
|
||||||
fn counts(&self) -> Vec<(&'static str, i64)> {
|
fn counts(&self) -> Vec<(&'static str, i64)> {
|
||||||
let values = self.values();
|
let values = self.values();
|
||||||
|
|
||||||
|
|
|
@ -355,7 +355,7 @@ impl CountedItem for Object {
|
||||||
|
|
||||||
fn counts(&self) -> Vec<(&'static str, i64)> {
|
fn counts(&self) -> Vec<(&'static str, i64)> {
|
||||||
let versions = self.versions();
|
let versions = self.versions();
|
||||||
#[allow(clippy::bool_to_int_with_if)]
|
#[allow(clippy::bool_to_int_with_if)]
|
||||||
let n_objects = if versions.iter().any(|v| v.is_data()) {
|
let n_objects = if versions.iter().any(|v| v.is_data()) {
|
||||||
1
|
1
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue