Skip to content

Commit ef077c1

Browse files
committedAug 19, 2018
[rustfmt] Enable reorder_impl_items
Also drop config items whose value is now default to rustfmt.
1 parent d0f8e63 commit ef077c1

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed
 

‎.rustfmt.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
brace_style = "SameLineWhere"
2-
imports_indent = "Block"
31
imports_layout = "HorizontalVertical"
4-
indent_style = "Block"
52
max_width = 100
6-
reorder_imports = true
3+
reorder_impl_items = true

‎gen/src/source/ucd/test/grapheme_break_test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub struct GraphemeBreakTest {
4545

4646
impl FromStr for GraphemeBreakTests {
4747
type Err = ();
48+
4849
fn from_str(string: &str) -> Result<GraphemeBreakTests, ()> {
4950
lazy_static! {
5051
static ref LINE_RE: Regex = Regex::new(

‎gen/src/source/ucd/test/normalization_test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub struct NormalizationTest {
3434

3535
impl FromStr for NormalizationTests {
3636
type Err = ();
37+
3738
fn from_str(str: &str) -> Result<NormalizationTests, ()> {
3839
lazy_static! {
3940
static ref REGEX: Regex = Regex::new(

‎gen/src/source/ucd/test/word_break_test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub struct WordBreakTest {
4545

4646
impl FromStr for WordBreakTests {
4747
type Err = ();
48+
4849
fn from_str(string: &str) -> Result<WordBreakTests, ()> {
4950
lazy_static! {
5051
static ref LINE_RE: Regex = Regex::new(

‎unic/char/range/src/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ impl CharRange {
216216
}
217217

218218
impl IntoIterator for CharRange {
219-
type Item = char;
220219
type IntoIter = CharIter;
220+
type Item = char;
221221

222222
fn into_iter(self) -> CharIter {
223223
self.iter()

‎unic/ucd/normal/src/canonical_combining_class.rs

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ mod data {
5757
include!("../tables/canonical_combining_class_values.rsv");
5858
}
5959

60+
#[cfg_attr(rustfmt, rustfmt_skip)] // We want the consts ordered by value.
6061
#[allow(non_upper_case_globals)]
6162
impl CanonicalCombiningClass {
6263
/// Find the character `Canonical_Combining_Class` property value.

0 commit comments

Comments
 (0)
Please sign in to comment.