File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -226,14 +226,14 @@ macro_rules! _cssparser_internal__to_lowercase {
226226 #[ allow( dead_code) ]
227227 struct Dummy2 ;
228228
229- // MAX_LENGTH is generated by cssparser__match_ignore_ascii_case__max_len
230- let mut buffer : [ u8 ; MAX_LENGTH ] =
231- // `buffer` is only used in `_internal__to_lowercase`,
232- // which initializes with `copy_from_slice` the part of the buffer it uses,
233- // before it uses it.
234- unsafe {
235- :: std:: mem:: uninitialized( )
236- } ;
229+ // mem::uninitialized() is ok because `buffer` is only used in `_internal__to_lowercase`,
230+ // which initializes with `copy_from_slice` the part of the buffer it uses,
231+ // before it uses it.
232+ # [ allow ( unsafe_code ) ]
233+ // MAX_LENGTH is generated by cssparser__max_len
234+ let mut buffer : [ u8 ; MAX_LENGTH ] = unsafe {
235+ :: std:: mem:: uninitialized( )
236+ } ;
237237 let $output = $crate:: _internal__to_lowercase( & mut buffer, $input) ;
238238 }
239239}
You can’t perform that action at this time.
0 commit comments