Skip to content

Commit f9ef930

Browse files
KixironJoshua Nelson
authored and
Joshua Nelson
committed
Clippy
1 parent da71d1b commit f9ef930

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/web/error.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl Handler for Nope {
3535
// user tried to navigate to a resource (doc page/file) that doesn't exist
3636
// TODO: Display the attempted page
3737
ErrorPage {
38-
title: "The requested resource does not exist".into(),
38+
title: "The requested resource does not exist",
3939
message: Some("no such resource".into()),
4040
status: Status::NotFound,
4141
}
@@ -46,7 +46,7 @@ impl Handler for Nope {
4646
// user tried to navigate to a crate that doesn't exist
4747
// TODO: Display the attempted crate and a link to a search for said crate
4848
ErrorPage {
49-
title: "The requested crate does not exist".into(),
49+
title: "The requested crate does not exist",
5050
message: Some("no such crate".into()),
5151
status: Status::NotFound,
5252
}
@@ -79,7 +79,7 @@ impl Handler for Nope {
7979
Nope::InternalServerError => {
8080
// something went wrong, details should have been logged
8181
ErrorPage {
82-
title: "Internal server error".into(),
82+
title: "Internal server error",
8383
message: Some("internal server error".into()),
8484
status: Status::InternalServerError,
8585
}

0 commit comments

Comments
 (0)