Skip to content

Commit ac77b06

Browse files
committed
cargo clippy fix
1 parent db0fca6 commit ac77b06

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ungron.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ fn extract_path(left: &AssignLeft) -> Result<Vec<PathSegment>> {
6767
}
6868

6969
// Root must be 'json'
70-
if let Expr::Ident(ident) = current_expr {
71-
if ident.name != "json" {
72-
return Err(anyhow!("Path root must be 'json', found '{}'", ident.name));
73-
}
70+
if let Expr::Ident(ident) = current_expr
71+
&& ident.name != "json"
72+
{
73+
return Err(anyhow!("Path root must be 'json', found '{}'", ident.name));
7474
}
7575

7676
segments.reverse();

0 commit comments

Comments
 (0)