mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-06 04:25:00 +00:00
Redundant to_owned
This commit is contained in:
parent
249b3a186e
commit
5e0040d8c8
2 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ impl User_ {
|
||||||
let my_claims = Claims {
|
let my_claims = Claims {
|
||||||
id: self.id,
|
id: self.id,
|
||||||
username: self.name.to_owned(),
|
username: self.name.to_owned(),
|
||||||
iss: Settings::get().hostname.to_owned(),
|
iss: Settings::get().hostname,
|
||||||
show_nsfw: self.show_nsfw,
|
show_nsfw: self.show_nsfw,
|
||||||
theme: self.theme.to_owned(),
|
theme: self.theme.to_owned(),
|
||||||
default_sort_type: self.default_sort_type,
|
default_sort_type: self.default_sort_type,
|
||||||
|
|
|
@ -77,7 +77,7 @@ async fn main() -> Result<(), Error> {
|
||||||
))
|
))
|
||||||
.service(actix_files::Files::new(
|
.service(actix_files::Files::new(
|
||||||
"/docs",
|
"/docs",
|
||||||
settings.front_end_dir.to_owned() + "/documentation",
|
settings.front_end_dir + "/documentation",
|
||||||
))
|
))
|
||||||
})
|
})
|
||||||
.bind((settings.bind, settings.port))?
|
.bind((settings.bind, settings.port))?
|
||||||
|
|
Loading…
Reference in a new issue