Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
fotonick committed Jul 26, 2024
1 parent fc2f0a4 commit 1156f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fitsio/src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl ReadsCol for bool {
let test_name = name.into();
let column_number = column_descriptions
.iter()
.position(|ref desc| desc.name == test_name)
.position(|desc| desc.name == test_name)
.ok_or(Error::Message(format!(
"Cannot find column {:?}",
test_name
Expand Down Expand Up @@ -233,7 +233,7 @@ impl ReadsCol for bool {
Self: Sized,
{
// XXX Ineffient but works
Self::read_col_range(fits_file, name, &(idx..idx + 1)).map(|v| v[0].clone())
Self::read_col_range(fits_file, name, &(idx..idx + 1)).map(|v| v[0])
}
}

Expand Down

0 comments on commit 1156f12

Please sign in to comment.