Browse Source

remove unneeded into()

edition-2021
Lynne Megido 3 months ago
parent
commit
88b5070a03
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90
  1. 2
      Cargo.lock
  2. 2
      src/findings.rs

2
Cargo.lock generated

@ -1,7 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "arrayvec"
version = "0.5.2"

2
src/findings.rs

@ -38,7 +38,7 @@ impl serde::Serialize for Findings {
impl Findings {
pub fn recommended_extension(&self) -> Option<String> {
mime_extension_lookup(self.mime.essence_str().into()).map(|extensions| extensions[0].clone().into())
mime_extension_lookup(self.mime.essence_str().into()).map(|extensions| extensions[0].clone())
}
}

Loading…
Cancel
Save