Skip to content

Commit 4d1aa8c

Browse files
committed
clippy
1 parent a730b8d commit 4d1aa8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/web/rustdoc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ pub(crate) async fn rustdoc_html_server_handler(
492492
// Attempt to load the given file from storage.
493493
let blob = match storage
494494
.stream_rustdoc_file(
495-
&params.name(),
495+
params.name(),
496496
&krate.version,
497497
krate.latest_build_id,
498498
&storage_path,
@@ -520,7 +520,7 @@ pub(crate) async fn rustdoc_html_server_handler(
520520

521521
if storage
522522
.rustdoc_file_exists(
523-
&params.name(),
523+
params.name(),
524524
&krate.version,
525525
krate.latest_build_id,
526526
&params.storage_path(),
@@ -652,7 +652,7 @@ pub(crate) async fn target_redirect_handler(
652652
trace!(storage_path, "checking if path exists in other version");
653653
let redirect_uri = if storage
654654
.rustdoc_file_exists(
655-
&params.name(),
655+
params.name(),
656656
&crate_details.version,
657657
crate_details.latest_build_id,
658658
&storage_path,

src/web/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ pub(crate) async fn source_browser_handler(
242242
let (blob, is_file_too_large) = if !params.path_is_folder() {
243243
match storage
244244
.fetch_source_file(
245-
&params.name(),
245+
params.name(),
246246
&version,
247247
row.latest_build_id,
248248
inner_path,

0 commit comments

Comments
 (0)