Merge pull request 'Run cargo fmt' (#839) from fmt into main
Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/839
This commit is contained in:
		
						commit
						963e742dcf
					
				| @ -294,8 +294,7 @@ pub fn md_to_html<'a>( | ||||
|                                     } | ||||
|                                     let hashtag = text_acc; | ||||
|                                     let link = Tag::Link( | ||||
|                                         format!("{}tag/{}", base_url, &hashtag) | ||||
|                                             .into(), | ||||
|                                         format!("{}tag/{}", base_url, &hashtag).into(), | ||||
|                                         hashtag.to_owned().into(), | ||||
|                                     ); | ||||
| 
 | ||||
|  | ||||
| @ -215,7 +215,7 @@ pub fn add_email_blocklist( | ||||
|     if let Err(Error::Db(_)) = result { | ||||
|         Ok(Flash::error( | ||||
|             Redirect::to(uri!(admin_email_blocklist: page = None)), | ||||
|             i18n!(rockets.intl.catalog, "Email already blocked") | ||||
|             i18n!(rockets.intl.catalog, "Email already blocked"), | ||||
|         )) | ||||
|     } else { | ||||
|         Ok(Flash::success( | ||||
|  | ||||
| @ -318,9 +318,7 @@ pub fn update( | ||||
|                 .filter(|t| !t.is_empty()) | ||||
|                 .collect::<HashSet<_>>() | ||||
|                 .into_iter() | ||||
|                 .filter_map(|t| { | ||||
|                     Tag::build_activity(t.to_string()).ok() | ||||
|                 }) | ||||
|                 .filter_map(|t| Tag::build_activity(t.to_string()).ok()) | ||||
|                 .collect::<Vec<_>>(); | ||||
|             post.update_tags(&conn, tags) | ||||
|                 .expect("post::update: tags error"); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user