]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-913.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / tools / rustfmt / tests / target / issue-913.rs
1 mod client {
2     impl Client {
3         fn test(self) -> Result<()> {
4             let next_state = match self.state {
5                 State::V5(v5::State::Command(v5::coand::State::WriteVersion(ref mut response))) => {
6                     let x = reformat.meeee();
7                 }
8             };
9
10             let next_state = match self.state {
11                 State::V5(v5::State::Command(v5::comand::State::WriteVersion(
12                     ref mut response,
13                 ))) => {
14                     // The pattern cannot be formatted in a way that the match stays
15                     // within the column limit. The rewrite should therefore be
16                     // skipped.
17                     let x = dont.reformat.meeee();
18                 }
19             };
20         }
21     }
22 }