Skip to content

Commit fb232e9

Browse files
author
share121
committed
style: 使用 .to_string 代替 ToString::to_string
1 parent 9bff026 commit fb232e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reqwest/prefetch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn get_filename(headers: &HeaderMap, final_url: &Url) -> String {
4444
.and_then(|mut segments| segments.next_back())
4545
.and_then(|s| urlencoding::decode(s).ok())
4646
.filter(|s| !s.trim().is_empty())
47-
.map(|s| ToString::to_string(&s));
47+
.map(|s| s.to_string());
4848

4949
let raw_name = from_disposition
5050
.or(from_url)

0 commit comments

Comments
 (0)