fix(link_to): fix some missing "link" references

This commit is contained in:
Scott Haug 2023-02-27 13:42:34 -08:00
parent 292e5d0cdc
commit c284839bd8
2 changed files with 8 additions and 8 deletions

View File

@ -43,10 +43,10 @@ jobs:
- name: Clippy
run: cargo clippy -- -D warnings
- name: Check (async-std)
run: cargo check --features link
run: cargo check --features link_to
- name: Run tests (async-std)
run: cargo test --verbose --features link
run: cargo test --verbose --features link_to
- name: Check (Tokio)
run: cargo check --no-default-features --features tokio-runtime,link
run: cargo check --no-default-features --features tokio-runtime,link_to
- name: Run unit tests (Tokio)
run: cargo test --verbose --no-default-features --features tokio-runtime,link --lib
run: cargo test --verbose --no-default-features --features tokio-runtime,link_to --lib

View File

@ -226,7 +226,7 @@ fn link_to_async(c: &mut Criterion) {
let tmp = tempfile::tempdir().unwrap();
let cache = tmp.path().to_owned();
c.bench_function("link::file", move |b| {
c.bench_function("link_to::file", move |b| {
b.iter_custom(|iters| {
let start = std::time::Instant::now();
for i in 0..iters {
@ -249,7 +249,7 @@ fn link_to_hash_async(c: &mut Criterion) {
let tmp = tempfile::tempdir().unwrap();
let cache = tmp.path().to_owned();
c.bench_function("link::file_hash", move |b| {
c.bench_function("link_to::file_hash", move |b| {
b.iter(|| block_on(cacache::link_to_hash(&cache, target.clone())).unwrap())
});
}
@ -261,7 +261,7 @@ fn link_to_sync(c: &mut Criterion) {
let tmp = tempfile::tempdir().unwrap();
let cache = tmp.path().to_owned();
c.bench_function("link::file_sync", move |b| {
c.bench_function("link_to::file_sync", move |b| {
b.iter_custom(|iters| {
let start = std::time::Instant::now();
for i in 0..iters {
@ -279,7 +279,7 @@ fn link_to_hash_sync(c: &mut Criterion) {
let tmp = tempfile::tempdir().unwrap();
let cache = tmp.path().to_owned();
c.bench_function("link::file_hash_sync", move |b| {
c.bench_function("link_to::file_hash_sync", move |b| {
b.iter(|| cacache::link_to_hash_sync(&cache, target.clone()).unwrap())
});
}