Skip to content

Commit f1500f8

Browse files
committed
Linked an issue #35 and disabled deprecation warning
1 parent 978c221 commit f1500f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ impl Log for AndroidLogger {
133133
}
134134

135135
// tag must not exceed LOGGING_TAG_MAX_LEN
136+
#[allow(deprecated)] // created an issue #35 for this
136137
let mut tag_bytes: [u8; LOGGING_TAG_MAX_LEN + 1] = unsafe { mem::uninitialized() };
137138

138139
let module_path = record.module_path().unwrap_or_default().to_owned();
@@ -244,6 +245,7 @@ struct PlatformLogWriter<'a> {
244245
impl<'a> PlatformLogWriter<'a> {
245246
#[cfg(target_os = "android")]
246247
pub fn new(level: Level, tag: &CStr) -> PlatformLogWriter {
248+
#[allow(deprecated)] // created an issue #35 for this
247249
PlatformLogWriter {
248250
priority: match level {
249251
Level::Warn => LogPriority::WARN,
@@ -261,6 +263,7 @@ impl<'a> PlatformLogWriter<'a> {
261263

262264
#[cfg(not(target_os = "android"))]
263265
pub fn new(level: Level, tag: &CStr) -> PlatformLogWriter {
266+
#[allow(deprecated)] // created an issue #35 for this
264267
PlatformLogWriter {
265268
priority: level,
266269
len: 0,

0 commit comments

Comments
 (0)