diff --git a/metal/src/memory/schema.rs b/metal/src/memory/schema.rs index 30908a4172..f5ed36f580 100644 --- a/metal/src/memory/schema.rs +++ b/metal/src/memory/schema.rs @@ -1,5 +1,5 @@ use crate::fact::MetalTypedFactExt; -use crate::ops::{MetalSync, MetalSyncKind}; +use crate::ops::MetalSyncKind; use std::fmt; use std::fmt::Debug; use tract_core::internal::*; @@ -37,7 +37,7 @@ impl Lifetime { } fn next_nodes<'a>(model: &'a TypedModel, node: &TypedNode) -> Option> { - if node.outputs.len() == 0 { return None }; + if node.outputs.is_empty() { return None }; Some(node.outputs.iter().map(|o| { o.successors.iter().map(|succ| {