From 92cb7ec27fa9453521b197bd10a4897ed8d2e3b2 Mon Sep 17 00:00:00 2001 From: LouisChourakiSonos Date: Fri, 20 Dec 2024 10:30:24 +0100 Subject: [PATCH] fix clippy --- metal/src/memory/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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| {