@@ -35,7 +35,7 @@ impl Handler for Nope {
35
35
// user tried to navigate to a resource (doc page/file) that doesn't exist
36
36
// TODO: Display the attempted page
37
37
ErrorPage {
38
- title : "The requested resource does not exist" . into ( ) ,
38
+ title : "The requested resource does not exist" ,
39
39
message : Some ( "no such resource" . into ( ) ) ,
40
40
status : Status :: NotFound ,
41
41
}
@@ -46,7 +46,7 @@ impl Handler for Nope {
46
46
// user tried to navigate to a crate that doesn't exist
47
47
// TODO: Display the attempted crate and a link to a search for said crate
48
48
ErrorPage {
49
- title : "The requested crate does not exist" . into ( ) ,
49
+ title : "The requested crate does not exist" ,
50
50
message : Some ( "no such crate" . into ( ) ) ,
51
51
status : Status :: NotFound ,
52
52
}
@@ -79,7 +79,7 @@ impl Handler for Nope {
79
79
Nope :: InternalServerError => {
80
80
// something went wrong, details should have been logged
81
81
ErrorPage {
82
- title : "Internal server error" . into ( ) ,
82
+ title : "Internal server error" ,
83
83
message : Some ( "internal server error" . into ( ) ) ,
84
84
status : Status :: InternalServerError ,
85
85
}
0 commit comments