Skip to content

Commit dd61da1

Browse files
committed
clippy
1 parent 7b48f24 commit dd61da1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

espflash/src/error.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl<T> ResultExt for Result<T, Error> {
270270
pub enum PartitionTableError {
271271
#[error(transparent)]
272272
#[diagnostic(transparent)]
273-
CSV(#[from] CSVError),
273+
Csv(#[from] CSVError),
274274
#[error(transparent)]
275275
#[diagnostic(transparent)]
276276
Overlapping(#[from] OverlappingPartitionsError),
@@ -372,8 +372,8 @@ impl OverlappingPartitionsError {
372372
pub fn new(source: &str, partition1_line: usize, partition2_line: usize) -> Self {
373373
OverlappingPartitionsError {
374374
source_code: source.into(),
375-
partition1_span: line_to_span(&source, partition1_line),
376-
partition2_span: line_to_span(&source, partition2_line),
375+
partition1_span: line_to_span(source, partition1_line),
376+
partition2_span: line_to_span(source, partition2_line),
377377
}
378378
}
379379
}
@@ -400,8 +400,8 @@ impl DuplicatePartitionsError {
400400
) -> Self {
401401
DuplicatePartitionsError {
402402
source_code: source.into(),
403-
partition1_span: line_to_span(&source, partition1_line),
404-
partition2_span: line_to_span(&source, partition2_line),
403+
partition1_span: line_to_span(source, partition1_line),
404+
partition2_span: line_to_span(source, partition2_line),
405405
ty,
406406
}
407407
}
@@ -426,7 +426,7 @@ impl InvalidSubTypeError {
426426
pub fn new(source: &str, line: usize, ty: Type, sub_type: SubType) -> Self {
427427
InvalidSubTypeError {
428428
source_code: source.into(),
429-
span: line_to_span(&source, line),
429+
span: line_to_span(source, line),
430430
ty,
431431
sub_type,
432432
}
@@ -447,7 +447,7 @@ impl UnalignedPartitionError {
447447
pub fn new(source: &str, line: usize) -> Self {
448448
UnalignedPartitionError {
449449
source_code: source.into(),
450-
span: line_to_span(&source, line),
450+
span: line_to_span(source, line),
451451
}
452452
}
453453
}

0 commit comments

Comments
 (0)