Skip to content

Commit c5cfba7

Browse files
committed
(rustfmt)
1 parent 0c7e399 commit c5cfba7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

hdf5-rs/src/dim.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub type Ix = usize;
66
/// A trait for the shape and index types.
77
pub trait Dimension {
88
fn ndim(&self) -> usize;
9+
910
fn dims(&self) -> Vec<Ix>;
1011

1112
fn size(&self) -> Ix {
@@ -22,6 +23,7 @@ impl<'a, T: Dimension> Dimension for &'a T {
2223
fn ndim(&self) -> usize {
2324
Dimension::ndim(*self)
2425
}
26+
2527
fn dims(&self) -> Vec<Ix> {
2628
Dimension::dims(*self)
2729
}
@@ -31,6 +33,7 @@ impl Dimension for Vec<Ix> {
3133
fn ndim(&self) -> usize {
3234
self.len()
3335
}
36+
3437
fn dims(&self) -> Vec<Ix> {
3538
self.clone()
3639
}
@@ -74,6 +77,7 @@ impl Dimension for Ix {
7477
fn ndim(&self) -> usize {
7578
1
7679
}
80+
7781
fn dims(&self) -> Vec<Ix> {
7882
vec![*self]
7983
}

hdf5-rs/src/hl/container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::fmt::{self, Debug};
22
use std::mem;
33
use std::ops::Deref;
44

5-
use ndarray::{Array, Array1, Array2, ArrayD, ArrayView, ArrayView1, Ix1, Ix2};
5+
use ndarray::{Array, Array1, Array2, ArrayD, ArrayView, ArrayView1};
66
use ndarray::{SliceInfo, SliceOrIndex};
77

88
use libhdf5_sys::h5a::{H5Aget_space, H5Aget_storage_size, H5Aget_type, H5Aread, H5Awrite};

hdf5-rs/src/hl/space.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::fmt::{self, Debug};
33
use std::ops::Deref;
44
use std::ptr;
55

6-
use ndarray::{SliceInfo, SliceOrIndex};
6+
use ndarray::SliceOrIndex;
77

88
use libhdf5_sys::h5s::{
99
H5Scopy, H5Screate_simple, H5Sget_simple_extent_dims, H5Sget_simple_extent_ndims,

0 commit comments

Comments
 (0)