From: Dessalines Date: Tue, 14 Apr 2020 23:25:58 +0000 (-0400) Subject: Redundant to_owned X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/static/%24%7BappleTouchIcon%7D?a=commitdiff_plain;h=7ba6ee87141b131f2bcefce9296734aa5b276f9a;p=lemmy.git Redundant to_owned --- diff --git a/server/src/db/user.rs b/server/src/db/user.rs index c7b1b2d3..3a079f09 100644 --- a/server/src/db/user.rs +++ b/server/src/db/user.rs @@ -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, diff --git a/server/src/main.rs b/server/src/main.rs index 88d62eb9..2b4e8b08 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -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))?