mirror of https://github.com/LemmyNet/lemmy.git
clippy
parent
87954f0c98
commit
b207c18884
|
@ -183,7 +183,7 @@ async fn try_main() -> LemmyResult<()> {
|
||||||
fn site() -> LemmyResult<Site> {
|
fn site() -> LemmyResult<Site> {
|
||||||
Ok(Site {
|
Ok(Site {
|
||||||
id: Default::default(),
|
id: Default::default(),
|
||||||
name: "".to_string(),
|
name: String::new(),
|
||||||
sidebar: None,
|
sidebar: None,
|
||||||
published: Default::default(),
|
published: Default::default(),
|
||||||
updated: None,
|
updated: None,
|
||||||
|
@ -194,7 +194,7 @@ fn site() -> LemmyResult<Site> {
|
||||||
last_refreshed_at: Default::default(),
|
last_refreshed_at: Default::default(),
|
||||||
inbox_url: Url::parse("http://example.com")?.into(),
|
inbox_url: Url::parse("http://example.com")?.into(),
|
||||||
private_key: None,
|
private_key: None,
|
||||||
public_key: "".to_string(),
|
public_key: String::new(),
|
||||||
instance_id: Default::default(),
|
instance_id: Default::default(),
|
||||||
content_warning: None,
|
content_warning: None,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue