Skip to content

Commit 84baeb6

Browse files
committed
Apply clippy suggestions for Rust 1.77
1 parent 30e9e25 commit 84baeb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

imap-proto/src/parser/rfc5464.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn is_entry_component_char(c: u8) -> bool {
2121
}
2222

2323
enum EntryParseStage<'a> {
24-
PrivateShared(usize),
24+
PrivateShared,
2525
Admin(usize),
2626
VendorComment(usize),
2727
Path(usize),
@@ -81,10 +81,10 @@ fn check_path(i: &[u8], l: usize) -> EntryParseStage {
8181
}
8282

8383
fn check_entry_name(i: &[u8]) -> IResult<&[u8], &[u8]> {
84-
let mut stage = EntryParseStage::PrivateShared(0);
84+
let mut stage = EntryParseStage::PrivateShared;
8585
loop {
8686
match stage {
87-
EntryParseStage::PrivateShared(_) => {
87+
EntryParseStage::PrivateShared => {
8888
stage = check_private_shared(i);
8989
}
9090
EntryParseStage::Admin(l) => {

0 commit comments

Comments
 (0)