Skip to content

Commit

Permalink
Skip ::= fix new Clippy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmatthes authored May 27, 2024
1 parent 1e6cff4 commit 53bc191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphing/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ where

/// Define a new vertex.
pub fn add_vertex(&mut self, label: &str) -> bool {
if self.vertices.get(label).is_some() {
if self.vertices.contains_key(label) {
false
} else {
self.vertices
Expand Down Expand Up @@ -451,7 +451,7 @@ where

if result {
for (label, vertex) in &self.vertices {
if other.vertices.get(label).is_none() {
if !other.vertices.contains_key(label) {
result = false;
break;
}
Expand Down

0 comments on commit 53bc191

Please sign in to comment.