Skip to content

Commit

Permalink
Fix unecessary parentheses around match arm expression
Browse files Browse the repository at this point in the history
warn observed with rustc 1.65.0-nightly (40336865f 2022-08-15).
  • Loading branch information
darnuria authored and Geal committed Sep 12, 2022
1 parent 761ab0a commit b4aeb3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/number/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ where
*/
let (i, s) = recognize_float_or_exceptions(input)?;
match s.parse_to() {
Some(f) => (Ok((i, f))),
Some(f) => Ok((i, f)),
None => Err(crate::Err::Error(E::from_error_kind(
i,
crate::error::ErrorKind::Float,
Expand Down Expand Up @@ -1648,7 +1648,7 @@ where
*/
let (i, s) = recognize_float_or_exceptions(input)?;
match s.parse_to() {
Some(f) => (Ok((i, f))),
Some(f) => Ok((i, f)),
None => Err(crate::Err::Error(E::from_error_kind(
i,
crate::error::ErrorKind::Float,
Expand Down
4 changes: 2 additions & 2 deletions src/number/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ where
*/
let (i, s) = recognize_float_or_exceptions(input)?;
match s.parse_to() {
Some(f) => (Ok((i, f))),
Some(f) => Ok((i, f)),
None => Err(crate::Err::Error(E::from_error_kind(
i,
crate::error::ErrorKind::Float,
Expand Down Expand Up @@ -1621,7 +1621,7 @@ where
*/
let (i, s) = recognize_float_or_exceptions(input)?;
match s.parse_to() {
Some(f) => (Ok((i, f))),
Some(f) => Ok((i, f)),
None => Err(crate::Err::Error(E::from_error_kind(
i,
crate::error::ErrorKind::Float,
Expand Down

0 comments on commit b4aeb3b

Please sign in to comment.