fix: fix clippy warnings
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
e949ff445e
commit
c8501b1bf4
2 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,6 @@ pub fn embed_author_from_user(user: &User) -> CreateEmbedAuthor {
|
|||
pub fn semver_split(version: &str) -> Vec<u32> {
|
||||
version
|
||||
.split('.')
|
||||
.map(|s| s.parse().ok())
|
||||
.flatten()
|
||||
.filter_map(|s| s.parse().ok())
|
||||
.collect::<Vec<u32>>()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue