Skip to content

Commit 81070b8

Browse files
committed
fix: CachedSource stream_chunks
1 parent 15f65f4 commit 81070b8

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/cached_source.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,15 @@ impl<T: Source + Hash + PartialEq + Eq + 'static> StreamChunks<'_>
144144
}
145145
}
146146
Entry::Vacant(entry) => {
147-
// let (generated_info, map) = stream_and_get_source_and_map(
148-
// self.inner.as_ref(),
149-
// options,
150-
// on_chunk,
151-
// on_source,
152-
// on_name,
153-
// );
154-
// entry.insert(map);
155-
// generated_info
156-
todo!()
147+
let (generated_info, map) = stream_and_get_source_and_map(
148+
&self.inner as &T,
149+
options,
150+
on_chunk,
151+
on_source,
152+
on_name,
153+
);
154+
entry.insert(map);
155+
generated_info
157156
}
158157
}
159158
}

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ pub fn stream_chunks_of_combined_source_map<'a>(
14161416

14171417
pub fn stream_and_get_source_and_map<'a, S: StreamChunks<'a>>(
14181418
input_source: &'a S,
1419-
options: &'a MapOptions,
1419+
options: &MapOptions,
14201420
on_chunk: OnChunk,
14211421
on_source: OnSource<'_, 'a>,
14221422
on_name: OnName,

0 commit comments

Comments
 (0)