mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-01 08:49:16 +00:00
utils: use itertools
utils
This commit is contained in:
@@ -35,7 +35,7 @@ pub fn sanitize(name: &str) -> String {
|
||||
.to_string()
|
||||
})
|
||||
.filter(|label| !label.is_empty())
|
||||
.collect::<Vec<_>>()
|
||||
.collect_vec()
|
||||
.join(".");
|
||||
name.truncate(253);
|
||||
if dot {
|
||||
|
||||
Reference in New Issue
Block a user