This commit is contained in:
parent
0f8391660d
commit
2e43c6df12
2 changed files with 2 additions and 2 deletions
|
@ -327,7 +327,7 @@ pub fn get_metadata<'a>(root: &'a AstNode<'a>, mtype: TypeFileMetadata) -> FileM
|
|||
|
||||
// Trim descriptions
|
||||
if let Some(desc) = &mut metadata.description {
|
||||
*desc = desc.trim().to_owned();
|
||||
desc.clone_from(&desc.trim().into())
|
||||
}
|
||||
|
||||
FileMetadata {
|
||||
|
|
|
@ -54,7 +54,7 @@ fn build_page(config: Config) -> String {
|
|||
if let Some(m) = &f.metadata.info.index {
|
||||
name = m.name.to_owned().unwrap_or(name);
|
||||
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);
|
||||
|
||||
if let Some(style) = m.avatar_style.to_owned() {
|
||||
|
|
Loading…
Reference in a new issue