Skip to content

Commit d85db3f

Browse files
chore(deps): update dependency rust to v1.83.0 (#139)
* chore(deps): update dependency rust to v1.83.0 * fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hana <andywangsy@gmail.com>
1 parent 4ba2fec commit d85db3f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.74.0"
2+
channel = "1.83.0"
33
profile = "default"

src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl<'a> MappingsDecoder<'a> {
5757
}
5858
}
5959

60-
impl<'a> Iterator for MappingsDecoder<'a> {
60+
impl Iterator for MappingsDecoder<'_> {
6161
type Item = Mapping;
6262

6363
fn next(&mut self) -> Option<Self::Item> {

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub fn stream_chunks_of_source_map<'a>(
312312
fn get_source<'a>(source_map: &SourceMap, source: &'a str) -> Cow<'a, str> {
313313
let source_root = source_map.source_root();
314314
match source_root {
315-
Some(root) if root.is_empty() => Cow::Borrowed(source),
315+
Some("") => Cow::Borrowed(source),
316316
Some(root) if root.ends_with('/') => {
317317
Cow::Owned(format!("{}{}", root, source))
318318
}

0 commit comments

Comments
 (0)