Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg-duarte committed Feb 26, 2025
1 parent c4309d2 commit a08520a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mater/lib/benches/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ fn read_write(c: &mut Criterion) {
let content = std::fs::read(&source_file).unwrap();

c.bench_with_input(BenchmarkId::new("read", params), params, |b, _params| {
b.to_async(TokioExecutor::new().unwrap())
.iter(|| read_write_content_benched(&content, FileWriter::in_memory()));
b.to_async(TokioExecutor::new().unwrap()).iter(|| async {
read_write_content_benched(&content, FileWriter::in_memory().await.unwrap())
});
});
}
}
Expand Down
3 changes: 3 additions & 0 deletions mater/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ pub enum Error {

#[cfg(test)]
pub(crate) mod test_utils {
// Stops a false positive for the unused_crate_dependencies lint
use tempfile as _;

/// Check if two given slices are equal.
///
/// First checks if the two slices have the same size,
Expand Down

0 comments on commit a08520a

Please sign in to comment.