File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ impl Log for AndroidLogger {
133
133
}
134
134
135
135
// tag must not exceed LOGGING_TAG_MAX_LEN
136
+ #[ allow( deprecated) ] // created an issue #35 for this
136
137
let mut tag_bytes: [ u8 ; LOGGING_TAG_MAX_LEN + 1 ] = unsafe { mem:: uninitialized ( ) } ;
137
138
138
139
let module_path = record. module_path ( ) . unwrap_or_default ( ) . to_owned ( ) ;
@@ -244,6 +245,7 @@ struct PlatformLogWriter<'a> {
244
245
impl < ' a > PlatformLogWriter < ' a > {
245
246
#[ cfg( target_os = "android" ) ]
246
247
pub fn new ( level : Level , tag : & CStr ) -> PlatformLogWriter {
248
+ #[ allow( deprecated) ] // created an issue #35 for this
247
249
PlatformLogWriter {
248
250
priority : match level {
249
251
Level :: Warn => LogPriority :: WARN ,
@@ -261,6 +263,7 @@ impl<'a> PlatformLogWriter<'a> {
261
263
262
264
#[ cfg( not( target_os = "android" ) ) ]
263
265
pub fn new ( level : Level , tag : & CStr ) -> PlatformLogWriter {
266
+ #[ allow( deprecated) ] // created an issue #35 for this
264
267
PlatformLogWriter {
265
268
priority : level,
266
269
len : 0 ,
You can’t perform that action at this time.
0 commit comments