Skip to content

Commit fb30758

Browse files
committed
fix: clippy
1 parent 89bc45f commit fb30758

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/source.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ impl SourceMap {
400400
sources: value
401401
.get_array("sources")
402402
.map(|v| {
403-
v.into_iter()
403+
v.iter()
404404
.map(|s| s.as_str().map(|s| s.to_string()).unwrap_or_default())
405405
.collect::<Vec<_>>()
406406
.into()
@@ -409,7 +409,7 @@ impl SourceMap {
409409
sources_content: value
410410
.get_array("sourcesContent")
411411
.map(|v| {
412-
v.into_iter()
412+
v.iter()
413413
.map(|s| s.as_str().map(|s| s.to_string()).unwrap_or_default())
414414
.collect::<Vec<_>>()
415415
.into()
@@ -418,7 +418,7 @@ impl SourceMap {
418418
names: value
419419
.get_array("names")
420420
.map(|v| {
421-
v.into_iter()
421+
v.iter()
422422
.map(|s| s.as_str().map(|s| s.to_string()).unwrap_or_default())
423423
.collect::<Vec<_>>()
424424
.into()
@@ -430,7 +430,7 @@ impl SourceMap {
430430
.map(|v| Arc::from(v.to_string())),
431431
debug_id: value.get_str("debugId").map(|v| Arc::from(v.to_string())),
432432
ignore_list: value.get_array("ignoreList").map(|v| {
433-
v.into_iter()
433+
v.iter()
434434
.map(|n| n.as_u32().unwrap_or_default())
435435
.collect::<Vec<_>>()
436436
}),

0 commit comments

Comments
 (0)