Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmau committed Jan 8, 2024
1 parent a85b0cb commit 530fb5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/obdd/vectorize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ where
V: Deserialize<'de>,
{
let container: Vec<_> = serde::Deserialize::deserialize(des)?;
Ok(T::from_iter(container.into_iter()))
Ok(T::from_iter(container))
}
4 changes: 2 additions & 2 deletions server/src/double_labeled_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl DoubleLabeledGraph {
.iter()
.enumerate()
.filter(|(i, _)| node_indices.contains(i))
.filter(|(_, node)| !vec![Var::TOP, Var::BOT].contains(&node.var()))
.filter(|(_, node)| [Var::TOP, Var::BOT].contains(&node.var()))
.map(|(i, &node)| (i, node.lo().value()))
.map(|(i, v)| (i.to_string(), v.to_string()))
.collect();
Expand All @@ -103,7 +103,7 @@ impl DoubleLabeledGraph {
.iter()
.enumerate()
.filter(|(i, _)| node_indices.contains(i))
.filter(|(_, node)| !vec![Var::TOP, Var::BOT].contains(&node.var()))
.filter(|(_, node)| [Var::TOP, Var::BOT].contains(&node.var()))
.map(|(i, &node)| (i, node.hi().value()))
.map(|(i, v)| (i.to_string(), v.to_string()))
.collect();
Expand Down

0 comments on commit 530fb5c

Please sign in to comment.