Skip to content

Commit 8a678a8

Browse files
committed
chore: run clippy fix
1 parent e51c3d1 commit 8a678a8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/osc_query/node.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ impl OscQueryNode {
112112
};
113113
}
114114

115-
let contents = match self.contents.as_ref() {
116-
None => return None,
117-
Some(contents) => contents,
118-
};
115+
let contents = self.contents.as_ref()?;
119116

120117
match contents.get(&next_key.to_string()) {
121118
Some(node) => node.get(path),

0 commit comments

Comments
 (0)