Skip to content

Commit 8e57909

Browse files
author
Jan Kaul
committed
fix clippy warnings
1 parent 8d74972 commit 8e57909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion_iceberg/src/catalog/mirror.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ impl Mirror {
183183
pub fn table_exists(&self, identifier: Identifier) -> bool {
184184
self.storage
185185
.get(&identifier.to_string())
186-
.map_or(false, |node| matches!(node.value(), Node::Relation(_)))
186+
.is_some_and(|node| matches!(node.value(), Node::Relation(_)))
187187
}
188188

189189
pub fn schema_exists(&self, name: &str) -> bool {
190190
self.storage
191191
.get(name)
192-
.map_or(false, |node| matches!(node.value(), Node::Namespace(_)))
192+
.is_some_and(|node| matches!(node.value(), Node::Namespace(_)))
193193
}
194194

195195
pub fn catalog(&self) -> Arc<dyn Catalog> {

0 commit comments

Comments
 (0)