removed waring (have remaind dead code for future feature)
This commit is contained in:
@@ -117,7 +117,7 @@ impl PrettyContext {
|
||||
}
|
||||
|
||||
fn should_truncate(&self) -> bool {
|
||||
self.config.max_depth.map_or(false, |max| self.depth >= max)
|
||||
self.config.max_depth.is_some_and(|max| self.depth >= max)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user