Skip to content

Commit c95cb83

Browse files
committed
fix: cargo test
1 parent e454915 commit c95cb83

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

Cargo.lock

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ self_cell = "1.2.1"
4747
twox-hash = "2.1.0"
4848
regex = "1.11.1"
4949
criterion = { version = "0.5.1", default-features = false }
50+
rayon = "1.11.0"
5051

5152
[features]
5253
codspeed = ["codspeed-criterion-compat"]

src/object_pool.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ pub fn pull_usize_vec(requested_capacity: usize) -> Pooled<Vec<usize>> {
193193
///
194194
/// # Example
195195
/// ```
196+
/// use rspack_sources::{BoxSource, MapOptions, with_object_pool_scope};
197+
/// use rayon::prelude::*;
198+
///
199+
/// let sources: Vec<BoxSource> = vec![/* ... */];
200+
///
196201
/// with_object_pool_scope(|| {
197202
/// sources.into_par_iter()
198203
/// .map(|source| source.map(&MapOptions::default()))

0 commit comments

Comments
 (0)