Skip to content

Commit 16421db

Browse files
committed
refactor(lint): clippy::str_to_string
1 parent 09bcd79 commit 16421db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ unsafe_code = "forbid"
1515
unused_qualifications = "warn"
1616
[lints.clippy]
1717
pedantic = { level = "warn", priority = -1 }
18+
str_to_string = "warn"
1819
min_ident_chars = "warn"
1920
precedence_bits = "warn"
2021

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ pub fn bytes_to_str(bytes: &[u8], label: &str) -> KResult<String> {
636636
}
637637

638638
Err(KError::UnknownEncoding {
639-
name: label.to_string(),
639+
name: label.to_owned(),
640640
})
641641
}
642642

0 commit comments

Comments
 (0)