Skip to content

Commit

Permalink
chore(deps): update dependency rust to v1.83.0 (#139)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] and h-a-n-a authored Dec 9, 2024
1 parent 4ba2fec commit d85db3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.74.0"
channel = "1.83.0"
profile = "default"
2 changes: 1 addition & 1 deletion src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl<'a> MappingsDecoder<'a> {
}
}

impl<'a> Iterator for MappingsDecoder<'a> {
impl Iterator for MappingsDecoder<'_> {
type Item = Mapping;

fn next(&mut self) -> Option<Self::Item> {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ pub fn stream_chunks_of_source_map<'a>(
fn get_source<'a>(source_map: &SourceMap, source: &'a str) -> Cow<'a, str> {
let source_root = source_map.source_root();
match source_root {
Some(root) if root.is_empty() => Cow::Borrowed(source),
Some("") => Cow::Borrowed(source),
Some(root) if root.ends_with('/') => {
Cow::Owned(format!("{}{}", root, source))
}
Expand Down

0 comments on commit d85db3f

Please sign in to comment.