Skip to content

Commit d155d84

Browse files
authored
Fix/suppress clippy warnings (#999)
1 parent 9e93200 commit d155d84

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/arrayformat.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ impl FormatOptions {
5050
self.axis_collapse_limit = std::usize::MAX;
5151
self.axis_collapse_limit_next_last = std::usize::MAX;
5252
self.axis_collapse_limit_last = std::usize::MAX;
53-
self
54-
} else {
55-
self
5653
}
54+
self
5755
}
5856

5957
/// Axis length collapse limit before ellipsizing, where `axis_rindex` is

src/data_traits.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ unsafe impl<A> Data for OwnedArcRepr<A> {
252252
}
253253
}
254254

255+
#[allow(clippy::wrong_self_convention)]
255256
fn to_shared<D>(self_: &ArrayBase<Self, D>) -> ArrayBase<OwnedArcRepr<Self::Elem>, D>
256257
where
257258
Self::Elem: Clone,

0 commit comments

Comments
 (0)