File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 7
7
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
- //! Utilities for use in UNIC development.
11
10
12
11
13
12
#![ forbid( missing_docs) ]
Original file line number Diff line number Diff line change 22
22
/// }
23
23
///
24
24
/// /// Zero or more attributes
25
- /// pub mod abbr_names;
25
+ /// pub mod abbr_names for abbr ;
26
26
///
27
27
/// /// Zero or more attributes
28
- /// pub mod long_names;
28
+ /// pub mod long_names for long ;
29
29
/// }
30
30
///
31
31
/// // You must impl (Partial/Complete)CharProperty manually.
@@ -67,8 +67,8 @@ macro_rules! char_property {
67
67
$( $( #[ $variant_meta: meta] ) + $variant: ident $tt: tt ) *
68
68
}
69
69
70
- $( #[ $abbr_names_meta: meta] ) * pub mod $abbr_names: ident;
71
- $( #[ $long_names_meta: meta] ) * pub mod $long_names: ident;
70
+ $( #[ $abbr_names_meta: meta] ) * pub mod $abbr_names: ident for abbr ;
71
+ $( #[ $long_names_meta: meta] ) * pub mod $long_names: ident for long ;
72
72
) => {
73
73
__char_property_internal! {
74
74
$( #[ $name_meta] ) * pub enum $name
@@ -320,7 +320,6 @@ macro_rules! __char_property_internal {
320
320
}
321
321
322
322
#[ allow( bad_style) ]
323
- #[ allow( unreachable_patterns) ]
324
323
impl $crate:: char_property:: EnumeratedCharProperty for $name {
325
324
fn abbr_name( & self ) -> & ' static str {
326
325
match * self {
Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ char_property! {
17
17
/// Required
18
18
DisplayVariant {
19
19
abbr => DV ,
20
- display => "The one and only DISPLAY VARIANT!!!11! " ,
20
+ display => "The one and only DISPLAY VARIANT!" ,
21
21
}
22
22
/// Required
23
23
EmptyVariant {
24
24
abbr => EV ,
25
25
}
26
26
}
27
27
28
- pub mod abbr_names;
29
- pub mod long_names;
28
+ pub mod abbr_names for abbr ;
29
+ pub mod long_names for long ;
30
30
}
31
31
32
32
impl unic_utils:: char_property:: PartialCharProperty for Property {
@@ -51,6 +51,6 @@ fn basic_macro_use() {
51
51
52
52
assert_eq ! ( format!( "{}" , Property :: AbbrVariant ) , "AV" ) ;
53
53
assert_eq ! ( format!( "{}" , Property :: LongVariant ) , "Long Variant" ) ;
54
- assert_eq ! ( format!( "{}" , Property :: DisplayVariant ) , "The one and only DISPLAY VARIANT!!!11! " ) ;
54
+ assert_eq ! ( format!( "{}" , Property :: DisplayVariant ) , "The one and only DISPLAY VARIANT!" ) ;
55
55
assert_eq ! ( format!( "{}" , Property :: EmptyVariant ) , "EV" ) ;
56
56
}
You can’t perform that action at this time.
0 commit comments