Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed ellipsis bug where rustfmt was creating code that could not be …
…parsed
- Loading branch information
chris
authored and
crw5996
committed
Aug 24, 2018
1 parent
127a480
commit 4e748a2
Showing
3 changed files
with
41 additions
and
1 deletion.
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,19 @@ | ||
struct AStruct { | ||
A: u32, | ||
B: u32, | ||
C: u32, | ||
} | ||
|
||
impl Something for AStruct { | ||
fn a_func() { | ||
match a_val { | ||
ContextualParseError::InvalidMediaRule(ref err) => { | ||
let err: &CStr = match err.kind { | ||
ParseErrorKind::Custom(StyleParseErrorKind::MediaQueryExpectedFeatureName(..)) => { | ||
cstr!("PEMQExpectedFeatureName") | ||
}, | ||
}; | ||
} | ||
}; | ||
} | ||
} |
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,19 @@ | ||
struct AStruct { | ||
A: u32, | ||
B: u32, | ||
C: u32, | ||
} | ||
|
||
impl Something for AStruct { | ||
fn a_func() { | ||
match a_val { | ||
ContextualParseError::InvalidMediaRule(ref err) => { | ||
let err: &CStr = match err.kind { | ||
ParseErrorKind::Custom(StyleParseErrorKind::MediaQueryExpectedFeatureName( | ||
.. | ||
)) => cstr!("PEMQExpectedFeatureName"), | ||
}; | ||
} | ||
}; | ||
} | ||
} |