mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 12:49:04 +02:00
Use matches!()
for true/false returning match statements (#2176)
This commit is contained in:
@ -264,10 +264,7 @@ impl DebugDocBuilder {
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
match &self.inner.1 {
|
||||
pretty::Doc::Nil => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(&self.inner.1, pretty::Doc::Nil)
|
||||
}
|
||||
|
||||
pub fn or(self, doc: DebugDocBuilder) -> DebugDocBuilder {
|
||||
|
Reference in New Issue
Block a user