Fix rightful clippy complaints about map_err
This commit is contained in:
parent
45d0a5c720
commit
b09643c886
1 changed files with 2 additions and 2 deletions
|
|
@ -350,7 +350,7 @@ impl<
|
|||
.map_err(|error| -> TransferError<SpiError, ChipSelectError> {
|
||||
TransferError::ChipSelectError(error)
|
||||
})?;
|
||||
result.map_err(|error| TransferError::SpiError(error))
|
||||
result.map_err(TransferError::SpiError)
|
||||
}
|
||||
|
||||
/// Reads enough bytes over SPI to fill the `target` u8 slice
|
||||
|
|
@ -410,7 +410,7 @@ impl<
|
|||
.map_err(|error| -> TransferError<SpiError, ChipSelectError> {
|
||||
TransferError::ChipSelectError(error)
|
||||
})?;
|
||||
result.map_err(|error| TransferError::SpiError(error))
|
||||
result.map_err(TransferError::SpiError)
|
||||
}
|
||||
|
||||
/// Write a slice of u8 bytes over SPI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue