Skip to content

Commit 34a1ac4

Browse files
committed
Fix edition idioms
1 parent 37815d1 commit 34a1ac4

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
@@ -1006,7 +1006,7 @@ macro_rules! impl_formatting {
10061006
($fmt_trait:ident, $prefix:expr, $fmt_str:expr, $fmt_alt:expr) => {
10071007
impl<T: $fmt_trait + Clone + Integer> $fmt_trait for Ratio<T> {
10081008
#[cfg(feature = "std")]
1009-
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
1009+
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
10101010
let pre_pad = if self.denom.is_one() {
10111011
format!($fmt_str, self.numer)
10121012
} else {
@@ -1027,7 +1027,7 @@ macro_rules! impl_formatting {
10271027
f.pad_integral(non_negative, $prefix, pre_pad)
10281028
}
10291029
#[cfg(not(feature = "std"))]
1030-
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
1030+
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
10311031
let plus = if f.sign_plus() && self.numer >= T::zero() {
10321032
"+"
10331033
} else {

0 commit comments

Comments
 (0)