Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
# Pinned toolchain for linting
ACTIONS_LINTS_TOOLCHAIN: 1.75.0
ACTIONS_LINTS_TOOLCHAIN: 1.86.0

jobs:
tests-stable:
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
authors = ["Colin Walters <walters@verbum.org>"]
description = "Extension APIs for cap-std"
edition = "2021"
rust-version = "1.70.0"
rust-version = "1.86.0"
license = "MIT OR Apache-2.0"
name = "cap-std-ext"
readme = "README.md"
repository = "https://github.com/coreos/cap-std-ext"
# For historical reasons, the major version number is one greater than the cap-std major.
version = "4.0.7"
version = "5.0.0"

[dependencies]
cap-tempfile = "3.2.0"
cap-primitives = "3"
cap-tempfile = "4"
cap-primitives = "4"

[target.'cfg(not(windows))'.dependencies]
rustix = { version = "1.0", features = ["fs", "process", "pipe"] }
Expand Down
6 changes: 3 additions & 3 deletions src/dirext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ enum DirOwnedOrBorrowed<'d> {
Borrowed(&'d Dir),
}

impl<'d> Deref for DirOwnedOrBorrowed<'d> {
impl Deref for DirOwnedOrBorrowed<'_> {
type Target = Dir;

fn deref(&self) -> &Self::Target {
Expand Down Expand Up @@ -662,7 +662,7 @@ impl CapStdExtDirExt for Dir {
if !self.symlink_metadata(p)?.is_dir() {
// TODO use https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.NotADirectory
// once it's stable.
return Err(io::Error::new(io::ErrorKind::Other, "Found non-directory"));
return Err(io::Error::other("Found non-directory"));
}
Ok(false)
}
Expand Down Expand Up @@ -829,7 +829,7 @@ impl CapStdExtDirExt for Dir {

#[cfg(any(target_os = "android", target_os = "linux"))]
fn is_mountpoint(&self, path: impl AsRef<Path>) -> Result<Option<bool>> {
is_mountpoint_impl_statx(self, path.as_ref()).map_err(Into::into)
is_mountpoint_impl_statx(self, path.as_ref())
}

#[cfg(any(target_os = "android", target_os = "linux"))]
Expand Down
4 changes: 2 additions & 2 deletions tests/it/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ fn link_tempfile_with() -> Result<()> {
let e = td
.atomic_replace_with(p, |f| {
writeln!(f, "should not be written")?;
Err::<(), _>(std::io::Error::new(std::io::ErrorKind::Other, "oops"))
Err::<(), _>(std::io::Error::other("oops"))
})
.err()
.unwrap();
Expand Down Expand Up @@ -625,7 +625,7 @@ fn test_walk() -> std::io::Result<()> {
{
let r: std::io::Result<_> = td.walk(&WalkConfiguration::default(), |e| {
if e.path.strip_prefix("usr/share").is_ok() {
return Err(std::io::Error::new(std::io::ErrorKind::Other, "oops"));
return Err(std::io::Error::other("oops"));
}
Ok(ControlFlow::Continue(()))
});
Expand Down