run cargo format to fix indentation
This commit is contained in:
parent
700630da2f
commit
1f54f431f8
|
@ -22,7 +22,10 @@ pub fn fetch_instances(query_filter: &str) -> std::result::Result<Vec<Instance>,
|
|||
Some(instances) => Ok(instances
|
||||
.linked
|
||||
.iter()
|
||||
.filter(|instance| instance.software == Some("lemmy".to_owned()) && instance.domain.clone().contains(&lowercase_query_filter))
|
||||
.filter(|instance| {
|
||||
instance.software == Some("lemmy".to_owned())
|
||||
&& instance.domain.clone().contains(&lowercase_query_filter)
|
||||
})
|
||||
.map(|instance| instance.clone())
|
||||
.collect::<Vec<Instance>>()),
|
||||
None => Ok(vec![]),
|
||||
|
|
|
@ -10,7 +10,7 @@ use crate::api;
|
|||
pub struct EditorData {
|
||||
pub name: String,
|
||||
pub body: String,
|
||||
pub url: Option<reqwest::Url>
|
||||
pub url: Option<reqwest::Url>,
|
||||
}
|
||||
|
||||
pub struct EditorDialog {
|
||||
|
|
Loading…
Reference in New Issue