diff --git a/Cargo.toml b/Cargo.toml index 58e170e..768235f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ name = "vec1" readme = "./README.md" repository = "https://github.com/rustonaut/vec1/" edition = "2021" -rust-version = "1.74" +rust-version = "1.71.1" [features] default = ["std"] diff --git a/src/lib.rs b/src/lib.rs index 644e024..ee4e0c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -756,7 +756,8 @@ where if N == 0 { Err(Size0Error) } else { - Ok(Self(value.into())) + // TODO: as_slice can be removed when MSRV is bumped to 1.74 + Ok(Self(value.as_slice().into())) } } } @@ -771,7 +772,8 @@ where if N == 0 { Err(Size0Error) } else { - Ok(Self(value.into())) + // TODO: as_slice can be removed when MSRV is bumped to 1.74 + Ok(Self(value.as_slice().into())) } } }