fix: fix clippy warnings

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-05-01 10:35:56 +02:00
parent e949ff445e
commit c8501b1bf4
2 changed files with 2 additions and 3 deletions

View file

@ -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>>()
}