]> Untitled Git - lemmy.git/commitdiff
Redundant to_owned
authorDessalines <tyhou13@gmx.com>
Tue, 14 Apr 2020 23:25:58 +0000 (19:25 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 14 Apr 2020 23:25:58 +0000 (19:25 -0400)
server/src/db/user.rs
server/src/main.rs

index c7b1b2d3cb4bd237a56063162bc6fb76e451b797..3a079f0916e31452299cee9942b84c9347c1fda4 100644 (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,
index 88d62eb997c9fd374a4a1fc3661257d1f64029a0..2b4e8b081ed8f4ad5a20b7cc423b31af06b9c9c9 100644 (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))?