Skip to content

Commit b4aeb3b

Browse files
darnuriaGeal
authored andcommitted
Fix unecessary parentheses around match arm expression
warn observed with rustc 1.65.0-nightly (40336865f 2022-08-15).
1 parent 761ab0a commit b4aeb3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/number/complete.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ where
15951595
*/
15961596
let (i, s) = recognize_float_or_exceptions(input)?;
15971597
match s.parse_to() {
1598-
Some(f) => (Ok((i, f))),
1598+
Some(f) => Ok((i, f)),
15991599
None => Err(crate::Err::Error(E::from_error_kind(
16001600
i,
16011601
crate::error::ErrorKind::Float,
@@ -1648,7 +1648,7 @@ where
16481648
*/
16491649
let (i, s) = recognize_float_or_exceptions(input)?;
16501650
match s.parse_to() {
1651-
Some(f) => (Ok((i, f))),
1651+
Some(f) => Ok((i, f)),
16521652
None => Err(crate::Err::Error(E::from_error_kind(
16531653
i,
16541654
crate::error::ErrorKind::Float,

src/number/streaming.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ where
15671567
*/
15681568
let (i, s) = recognize_float_or_exceptions(input)?;
15691569
match s.parse_to() {
1570-
Some(f) => (Ok((i, f))),
1570+
Some(f) => Ok((i, f)),
15711571
None => Err(crate::Err::Error(E::from_error_kind(
15721572
i,
15731573
crate::error::ErrorKind::Float,
@@ -1621,7 +1621,7 @@ where
16211621
*/
16221622
let (i, s) = recognize_float_or_exceptions(input)?;
16231623
match s.parse_to() {
1624-
Some(f) => (Ok((i, f))),
1624+
Some(f) => Ok((i, f)),
16251625
None => Err(crate::Err::Error(E::from_error_kind(
16261626
i,
16271627
crate::error::ErrorKind::Float,

0 commit comments

Comments
 (0)