summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/benches/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/benches/mod.rs')
-rw-r--r--vendor/rustix/benches/mod.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/vendor/rustix/benches/mod.rs b/vendor/rustix/benches/mod.rs
index ee7358cc2..97828d431 100644
--- a/vendor/rustix/benches/mod.rs
+++ b/vendor/rustix/benches/mod.rs
@@ -18,7 +18,10 @@
target_os = "wasi",
))]
fn main() {
- unimplemented!("Add --cfg=criterion to RUSTFLAGS and enable the \"fs\", \"time\", and \"process\" cargo features.")
+ unimplemented!(
+ "Add --cfg=criterion to RUSTFLAGS and enable the \"fs\", \"time\", and \"process\" cargo \
+ features."
+ )
}
#[cfg(not(any(
@@ -47,11 +50,11 @@ mod suite {
use criterion::Criterion;
pub(super) fn simple_statat(c: &mut Criterion) {
- use rustix::fs::{cwd, statat, AtFlags};
+ use rustix::fs::{statat, AtFlags, CWD};
c.bench_function("simple statat", |b| {
b.iter(|| {
- statat(cwd(), "/", AtFlags::empty()).unwrap();
+ statat(CWD, "/", AtFlags::empty()).unwrap();
})
});
}
@@ -95,11 +98,11 @@ mod suite {
}
pub(super) fn simple_statat_cstr(c: &mut Criterion) {
- use rustix::fs::{cwd, statat, AtFlags};
+ use rustix::fs::{statat, AtFlags, CWD};
c.bench_function("simple statat cstr", |b| {
b.iter(|| {
- statat(cwd(), rustix::cstr!("/"), AtFlags::empty()).unwrap();
+ statat(CWD, rustix::cstr!("/"), AtFlags::empty()).unwrap();
})
});
}