mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
s/str::to_string/str::to_owned
This commit is contained in:
@ -31,7 +31,7 @@ impl ResponseError for Error {
|
||||
|
||||
async fn index() -> Result<HttpResponse, Error> {
|
||||
Err(Error {
|
||||
msg: "an example error message".to_string(),
|
||||
msg: "an example error message".to_owned(),
|
||||
status: 400,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user