We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db0fca6 commit ac77b06Copy full SHA for ac77b06
1 file changed
src/ungron.rs
@@ -67,10 +67,10 @@ fn extract_path(left: &AssignLeft) -> Result<Vec<PathSegment>> {
67
}
68
69
// 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
- }
+ if let Expr::Ident(ident) = current_expr
+ && ident.name != "json"
+ {
+ return Err(anyhow!("Path root must be 'json', found '{}'", ident.name));
74
75
76
segments.reverse();
0 commit comments