Skip to content

Commit 056db4a

Browse files
committed
Fix clippy error
1 parent 71301df commit 056db4a

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

rust/Cargo.lock

Lines changed: 4 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/nasl-syntax/src/naslvalue.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ impl NaslValue {
5454

5555
impl PartialOrd for NaslValue {
5656
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
57-
let a: Vec<u8> = self.into();
58-
let b: Vec<u8> = other.into();
59-
Some(a.cmp(&b))
57+
Some(self.cmp(other))
6058
}
6159
}
6260

0 commit comments

Comments
 (0)