File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,17 +111,17 @@ def compress_normal(normal):
111
111
return compressed
112
112
113
113
def print_singletons (uppers , lowers , uppersname , lowersname ):
114
- print ("const {}: &'static [(u8, u8)] = &[" .format (uppersname ))
114
+ print ("const {}: &[(u8, u8)] = &[" .format (uppersname ))
115
115
for u , c in uppers :
116
116
print (" ({:#04x}, {})," .format (u , c ))
117
117
print ("];" )
118
- print ("const {}: &'static [u8] = &[" .format (lowersname ))
118
+ print ("const {}: &[u8] = &[" .format (lowersname ))
119
119
for i in range (0 , len (lowers ), 8 ):
120
120
print (" {}" .format (" " .join ("{:#04x}," .format (l ) for l in lowers [i :i + 8 ])))
121
121
print ("];" )
122
122
123
123
def print_normal (normal , normalname ):
124
- print ("const {}: &'static [u8] = &[" .format (normalname ))
124
+ print ("const {}: &[u8] = &[" .format (normalname ))
125
125
for v in normal :
126
126
print (" {}" .format (" " .join ("{:#04x}," .format (i ) for i in v )))
127
127
print ("];" )
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ class UnicodeFiles(object):
81
81
82
82
#![allow(missing_docs, non_upper_case_globals, non_snake_case)]
83
83
84
- use unicode::version::UnicodeVersion;
85
- use unicode::bool_trie::{{BoolTrie, SmallBoolTrie}};
84
+ use crate:: unicode::version::UnicodeVersion;
85
+ use crate:: unicode::bool_trie::{{BoolTrie, SmallBoolTrie}};
86
86
""" .format (year = datetime .datetime .now ().year )
87
87
88
88
# Mapping taken from Table 12 from:
You can’t perform that action at this time.
0 commit comments