Skip to content

Commit

Permalink
Adopt 2018-edition-friendly syntax for trait method arg
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 29, 2021
1 parent 4690ded commit 1ef157b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -76,7 +76,7 @@ pub fn write<W: io::Write, V: Floating>(wr: W, value: V) -> io::Result<usize> {

/// An floating point number that can be formatted by `dtoa::write`.
pub trait Floating {
fn write<W: io::Write>(self, W) -> io::Result<usize>;
fn write<W: io::Write>(self, wr: W) -> io::Result<usize>;
}

impl Floating for f32 {
Expand Down

0 comments on commit 1ef157b

Please sign in to comment.