code: Fix clippy lnt

This commit is contained in:
Sophie Herold 2024-12-20 23:02:18 +01:00
parent dd359235cf
commit dfe71a61fc

View file

@ -276,7 +276,7 @@ impl LpFileModel {
return IndexMap::new();
};
let reduce = if index < n { n - index } else { 0 };
let reduce = n.saturating_sub(index);
self.imp()
.files