diff --git a/easytier/src/dns/utils.rs b/easytier/src/dns/utils.rs index 79a6fa26..62c01e3e 100644 --- a/easytier/src/dns/utils.rs +++ b/easytier/src/dns/utils.rs @@ -35,7 +35,7 @@ pub fn sanitize(name: &str) -> String { .to_string() }) .filter(|label| !label.is_empty()) - .collect::>() + .collect_vec() .join("."); name.truncate(253); if dot { diff --git a/easytier/src/proto/utils.rs b/easytier/src/proto/utils.rs index 82980692..aa92914a 100644 --- a/easytier/src/proto/utils.rs +++ b/easytier/src/proto/utils.rs @@ -49,7 +49,7 @@ where type Error = >::Error; fn try_from(value: &'m Vec) -> Result { - Ok(Self(value.into_iter().map_try_into().try_collect()?)) + Ok(Self(value.iter().map_try_into().try_collect()?)) } }