diff --git a/src/integrity.rs b/src/integrity.rs index f3de31d..717f13c 100644 --- a/src/integrity.rs +++ b/src/integrity.rs @@ -61,7 +61,7 @@ impl std::str::FromStr for Integrity { /// assert_eq!(sri.to_string(), String::from("sha256-deadbeef")); /// ``` fn from_str(s: &str) -> Result { - let mut hashes = String::from(s) + let mut hashes = s .split_whitespace() .map(|x| x.parse()) .collect::, Self::Err>>()?;