Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisChourakiSonos committed Dec 20, 2024
1 parent 73b0147 commit 92cb7ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metal/src/memory/schema.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand Down Expand Up @@ -37,7 +37,7 @@ impl Lifetime {
}

fn next_nodes<'a>(model: &'a TypedModel, node: &TypedNode) -> Option<TVec<&'a TypedNode>> {
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| {
Expand Down

0 comments on commit 92cb7ec

Please sign in to comment.