Skip to content

Commit b941367

Browse files
committed
Clippy fixes, package updates
1 parent 9a15ba6 commit b941367

2 files changed

Lines changed: 33 additions & 35 deletions

File tree

Cargo.lock

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

src/url_part_utf8_string.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use anyhow::Error;
22
use core::str::FromStr;
3+
use std::fmt::Display;
34
use percent_encoding::{percent_decode_str, AsciiSet, CONTROLS};
45
use std::string::ToString;
56

@@ -52,11 +53,9 @@ impl FromStr for UrlPartUtf8String {
5253
}
5354
}
5455

55-
impl ToString for UrlPartUtf8String {
56-
#[inline]
57-
/// returns decoded string (normal string)
58-
fn to_string(&self) -> String {
56+
impl Display for UrlPartUtf8String {
57+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5958
// return
60-
self.s.clone()
59+
write!(f, "{}", self.s.clone())
6160
}
6261
}

0 commit comments

Comments
 (0)