Skip to content

Commit 78b92fe

Browse files
committed
Fix deprecation warnings
1 parent 7356f72 commit 78b92fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl<S, T> Clone for RangeBound<S, T> where S: BoundSided, T: Clone {
219219
}
220220
}
221221

222-
impl<S, T> fmt::Show for RangeBound<S, T> where S: BoundSided, T: fmt::Show {
222+
impl<S, T> fmt::Debug for RangeBound<S, T> where S: BoundSided, T: fmt::Debug {
223223
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
224224
let (lower, upper) = match self.type_ {
225225
Inclusive => ('[', ']'),
@@ -328,7 +328,7 @@ enum InnerRange<T> {
328328
Option<RangeBound<UpperBound, T>>)
329329
}
330330

331-
impl<T> fmt::Show for Range<T> where T: fmt::Show {
331+
impl<T> fmt::Debug for Range<T> where T: fmt::Debug {
332332
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
333333
match self.inner {
334334
Empty => write!(fmt, "empty"),

0 commit comments

Comments
 (0)