Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
behnam committed Aug 8, 2017
1 parent b6355a9 commit 765eebf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions unic/bidi/src/explicit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ pub fn compute(
} else {
last_level.new_explicit_next_ltr()
};
if new_level.is_ok() && overflow_isolate_count == 0 &&
overflow_embedding_count == 0
if new_level.is_ok() && overflow_isolate_count == 0 && overflow_embedding_count == 0
{
let new_level = new_level.unwrap();
stack.push(
Expand Down
7 changes: 3 additions & 4 deletions unic/ucd/category/tests/major_category_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ fn test_general_category_major_groups() {
if gc.is_cased_letter() {
assert!(
gc.is_letter() && !gc.is_mark() && !gc.is_number() && !gc.is_punctuation() &&
!gc.is_symbol() &&
!gc.is_separator() && !gc.is_other(),
!gc.is_symbol() && !gc.is_separator() && !gc.is_other(),
"GC: `{:?}`",
gc
);
Expand All @@ -39,8 +38,8 @@ fn test_general_category_major_groups() {

} else if gc.is_mark() {
assert!(
!gc.is_number() && !gc.is_punctuation() && !gc.is_symbol() &&
!gc.is_separator() && !gc.is_other(),
!gc.is_number() && !gc.is_punctuation() && !gc.is_symbol() && !gc.is_separator() &&
!gc.is_other(),
"GC: `{:?}`",
gc
);
Expand Down
9 changes: 4 additions & 5 deletions unic/ucd/tests/bidi_class_consistency_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,10 @@ fn test_from_bidi_class() {
assert!(!matches!(
GC::of(cp),
GC::UppercaseLetter | GC::LowercaseLetter | GC::TitlecaseLetter |
GC::OtherLetter | GC::NonspacingMark |
GC::SpacingMark | GC::EnclosingMark |
GC::DecimalNumber |
GC::SpaceSeparator |
GC::LineSeparator | GC::ParagraphSeparator
GC::OtherLetter | GC::NonspacingMark | GC::SpacingMark |
GC::EnclosingMark | GC::DecimalNumber |
GC::SpaceSeparator | GC::LineSeparator |
GC::ParagraphSeparator
));
}

Expand Down

0 comments on commit 765eebf

Please sign in to comment.