diff options
author | Pi-Cla <pirateclip@protonmail.com> | 2024-08-11 09:46:04 +0200 |
---|---|---|
committer | Pi-Cla <pirateclip@protonmail.com> | 2024-08-11 09:48:10 +0200 |
commit | 399de3d42fbe719694d163e44ae0b49d7c77663b (patch) | |
tree | b05eb2a05e43c4317150134a2727bc39dffb870a /src/lib.rs | |
parent | Merge pull request 'bump version to 0.4.1' (#73) from bump-0.4.1 into main (diff) | |
download | forgejo-api-399de3d42fbe719694d163e44ae0b49d7c77663b.tar.xz forgejo-api-399de3d42fbe719694d163e44ae0b49d7c77663b.zip |
Clippy Fixes
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -367,7 +367,7 @@ where { let list: Option<Vec<Option<structs::User>>> = Option::deserialize(deserializer).map_err(DE::custom)?; - Ok(list.map(|list| list.into_iter().filter_map(|x| x).collect::<Vec<_>>())) + Ok(list.map(|list| list.into_iter().flatten().collect::<Vec<_>>())) } fn parse_ssh_url(raw_url: &String) -> Result<Url, url::ParseError> { |