🧑‍💻 Passes fmt and clippy checks

This commit is contained in:
Manuel Cillero 2023-07-25 21:57:45 +02:00
parent 5b9a53cbc6
commit d786ea1052
3 changed files with 4 additions and 10 deletions

View file

@ -101,10 +101,7 @@ impl PoweredBy {
#[fn_builder]
pub fn alter_copyright(&mut self, copyright: Option<impl Into<String>>) -> &mut Self {
self.copyright = match copyright {
Some(c) => Some(c.into()),
_ => None,
};
self.copyright = copyright.map(|c| c.into());
self
}