Skip to content

Commit e62893c

Browse files
dahlbaekrustonaut
authored andcommitted
Reduce rust-version to 1.71.1
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.
1 parent 9a753ac commit e62893c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "vec1"
1010
readme = "./README.md"
1111
repository = "https://github.com/rustonaut/vec1/"
1212
edition = "2021"
13-
rust-version = "1.74"
13+
rust-version = "1.71.1"
1414

1515
[features]
1616
default = ["std"]

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,8 @@ where
756756
if N == 0 {
757757
Err(Size0Error)
758758
} else {
759-
Ok(Self(value.into()))
759+
// TODO: as_slice can be removed when MSRV is bumped to 1.74
760+
Ok(Self(value.as_slice().into()))
760761
}
761762
}
762763
}
@@ -771,7 +772,8 @@ where
771772
if N == 0 {
772773
Err(Size0Error)
773774
} else {
774-
Ok(Self(value.into()))
775+
// TODO: as_slice can be removed when MSRV is bumped to 1.74
776+
Ok(Self(value.as_slice().into()))
775777
}
776778
}
777779
}

0 commit comments

Comments
 (0)