Redundant to_owned

This commit is contained in:
Dessalines 2020-04-14 19:25:58 -04:00
parent fcf1c65fc1
commit 7ba6ee8714
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ impl User_ {
let my_claims = Claims {
id: self.id,
username: self.name.to_owned(),
iss: Settings::get().hostname.to_owned(),
iss: Settings::get().hostname,
show_nsfw: self.show_nsfw,
theme: self.theme.to_owned(),
default_sort_type: self.default_sort_type,

View File

@ -77,7 +77,7 @@ async fn main() -> Result<(), Error> {
))
.service(actix_files::Files::new(
"/docs",
settings.front_end_dir.to_owned() + "/documentation",
settings.front_end_dir + "/documentation",
))
})
.bind((settings.bind, settings.port))?