Skip to content

Commit

Permalink
style: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 23, 2023
1 parent 21f3dce commit ec20366
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grovedb/src/visualize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Visualize for Element {
drawer = value.visualize(drawer)?;

if let Some(f) = flags {
if f.len() > 0 {
if !f.is_empty() {
drawer = f.visualize(drawer)?;
}
}
Expand All @@ -58,7 +58,7 @@ impl Visualize for Element {
drawer.write(format!("sum_item: {value}").as_bytes())?;

if let Some(f) = flags {
if f.len() > 0 {
if !f.is_empty() {
drawer = f.visualize(drawer)?;
}
}
Expand All @@ -81,7 +81,7 @@ impl Visualize for Element {
drawer = root_key.as_deref().visualize(drawer)?;

if let Some(f) = flags {
if f.len() > 0 {
if !f.is_empty() {
drawer = f.visualize(drawer)?;
}
}
Expand All @@ -92,7 +92,7 @@ impl Visualize for Element {
drawer.write(format!(" {value}").as_bytes())?;

if let Some(f) = flags {
if f.len() > 0 {
if !f.is_empty() {
drawer = f.visualize(drawer)?;
}
}
Expand Down

0 comments on commit ec20366

Please sign in to comment.