Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix off-by-one error in pattern formatting
- Loading branch information
1 parent
41e037d
commit 63f0fc9
Showing
3 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
mod client { | ||
impl Client { | ||
fn test(self) -> Result<()> { | ||
let next_state = match self.state { | ||
State::V5(v5::State::Command(v5::coand::State::WriteVersion(ref mut response))) => { | ||
let x = reformat . meeee() ; | ||
} | ||
}; | ||
|
||
let next_state = match self.state { | ||
State::V5(v5::State::Command(v5::comand::State::WriteVersion(ref mut response))) => { | ||
// The pattern cannot be formatted in a way that the match stays | ||
// within the column limit. The rewrite should therefore be | ||
// skipped. | ||
let x = dont . reformat . meeee(); | ||
} | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
mod client { | ||
impl Client { | ||
fn test(self) -> Result<()> { | ||
let next_state = match self.state { | ||
State::V5(v5::State::Command(v5::coand::State::WriteVersion(ref mut response))) => { | ||
let x = reformat.meeee(); | ||
} | ||
}; | ||
|
||
let next_state = match self.state { | ||
State::V5(v5::State::Command(v5::comand::State::WriteVersion(ref mut response))) => { | ||
// The pattern cannot be formatted in a way that the match stays | ||
// within the column limit. The rewrite should therefore be | ||
// skipped. | ||
let x = dont . reformat . meeee(); | ||
} | ||
}; | ||
} | ||
} | ||
} |