Skip to content

Commit

Permalink
Allow/fix warnings that are blocking CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Sep 13, 2023
1 parent a0ee850 commit 0fedf70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fitsio/src/ndarray_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ mod tests {
let phdu = f.primary_hdu().unwrap();

let data: ArrayD<f64> = phdu.read_image(&mut f).unwrap();
let dim = data.dim();
let _dim = data.dim();
assert_eq!(data.ndim(), 3);
assert_eq!(data.shape(), &[2, 3, 6]);
assert_eq!(data[[1, 1, 0]], 24.0);
Expand Down Expand Up @@ -405,7 +405,7 @@ mod tests {
let phdu = f.primary_hdu().unwrap();

let data: ArrayD<f64> = phdu.read_image(&mut f).unwrap();
let dim = data.dim();
let _dim = data.dim();
assert_eq!(data.ndim(), 4);
assert_eq!(data.shape(), &[2, 3, 3, 2]);
assert_eq!(data[[1, 1, 2, 1]], 29.0);
Expand Down
1 change: 1 addition & 0 deletions fitsio/src/threadsafe_fitsfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl FitsFile {
[fits-file]: ../fitsfile/struct.FitsFile.html
*/
pub fn threadsafe(self) -> ThreadsafeFitsFile {
#[allow(clippy::arc_with_non_send_sync)]
ThreadsafeFitsFile(Arc::new(Mutex::new(self)))
}
}
Expand Down

0 comments on commit 0fedf70

Please sign in to comment.