Skip to content

Commit 3b676d6

Browse files
committed
misc: fix some Clippy warnings
1 parent 7619012 commit 3b676d6

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ missing_panics_doc = "allow"
4646
missing_errors_doc = "allow"
4747
tabs_in_doc_comments = "allow"
4848

49-
string_to_string = "deny"
49+
implicit_clone = "deny"
5050
pedantic = { level = "deny", priority = -1 }
5151
all = { level = "deny", priority = -1 }
5252
too_many_lines = "allow"

common/src/unicode.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ pub fn encode(input: &str) -> Cow<'_, [u8]> {
108108
}
109109

110110
let mut index = 0;
111-
loop {
112-
let Some(b) = self.input.get(index).copied() else {
113-
break;
114-
};
115-
111+
while let Some(b) = self.input.get(index).copied() {
116112
match b {
117113
// All of the following require no changes:
118114

runtime/src/objects/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ pub mod instance;
66
pub mod method;
77
pub mod monitor;
88
pub mod reference;
9-
pub mod vtable;

0 commit comments

Comments
 (0)