mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
remove extra conversion
This commit is contained in:
parent
c5aada49b4
commit
edf9982933
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ impl Mime {
|
|||
return Ok(None);
|
||||
}
|
||||
match parse(s) {
|
||||
Some(v) => Ok(Some(Self(v.to_lowercase()))),
|
||||
Some(v) => Ok(Some(Self(v))),
|
||||
None => Err(Error::Undefined),
|
||||
}
|
||||
}
|
||||
|
|
@ -66,5 +66,5 @@ pub fn parse(s: &str) -> Option<String> {
|
|||
RegexMatchFlags::DEFAULT,
|
||||
)
|
||||
.get(1)
|
||||
.map(|this| this.to_string())
|
||||
.map(|this| this.to_lowercase())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue