clippy
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2024-05-16 18:08:58 +02:00
parent 0f8391660d
commit 2e43c6df12
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 2 deletions

View file

@ -327,7 +327,7 @@ pub fn get_metadata<'a>(root: &'a AstNode<'a>, mtype: TypeFileMetadata) -> FileM
// Trim descriptions // Trim descriptions
if let Some(desc) = &mut metadata.description { if let Some(desc) = &mut metadata.description {
*desc = desc.trim().to_owned(); desc.clone_from(&desc.trim().into())
} }
FileMetadata { FileMetadata {

View file

@ -54,7 +54,7 @@ fn build_page(config: Config) -> String {
if let Some(m) = &f.metadata.info.index { if let Some(m) = &f.metadata.info.index {
name = m.name.to_owned().unwrap_or(name); name = m.name.to_owned().unwrap_or(name);
avatar = m.avatar.to_owned().unwrap_or(avatar); avatar = m.avatar.to_owned().unwrap_or(avatar);
pronouns = m.pronouns.to_owned(); m.pronouns.clone_into(&mut pronouns);
avatar_caption = m.avatar_caption.to_owned().unwrap_or(avatar_caption); avatar_caption = m.avatar_caption.to_owned().unwrap_or(avatar_caption);
if let Some(style) = m.avatar_style.to_owned() { if let Some(style) = m.avatar_style.to_owned() {