From 7ba6ee87141b131f2bcefce9296734aa5b276f9a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 14 Apr 2020 19:25:58 -0400 Subject: [PATCH] Redundant to_owned --- server/src/db/user.rs | 2 +- server/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/db/user.rs b/server/src/db/user.rs index c7b1b2d3c..3a079f091 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 88d62eb99..2b4e8b081 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))?