Skip to content

Commit

Permalink
Reduce rust-version to 1.71.1
Browse files Browse the repository at this point in the history
Only a minor change is needed in order to support rustc 1.71.1.
Since this is the version of rust currently packaged by Debian
trixie, it is nice for distro packagers if that version
can be supported out of the box.
  • Loading branch information
dahlbaek authored and rustonaut committed May 25, 2024
1 parent 9a753ac commit e62893c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}
}
}
Expand All @@ -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()))
}
}
}
Expand Down

0 comments on commit e62893c

Please sign in to comment.