Skip to content

Commit

Permalink
don't use #[macro_use] for log macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ystreet committed Aug 8, 2024
1 parent cc6b486 commit ba0232c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ use std::time::Duration;

use muldiv::MulDiv;

#[macro_use]
extern crate log;
use log::{debug, trace, warn};

pub mod tables;

Expand Down Expand Up @@ -1201,7 +1200,7 @@ mod test {
fn cc_data_parse() {
test_init_log();
for (i, test_data) in TEST_CC_DATA.iter().enumerate() {
info!("parsing {i}: {test_data:?}");
log::info!("parsing {i}: {test_data:?}");
let mut parser = CCDataParser::new();
if !test_data.cea608.is_empty() {
parser.handle_cea608();
Expand Down Expand Up @@ -1488,7 +1487,7 @@ mod test {
fn packet_write_cc_data() {
test_init_log();
for test_data in WRITE_CC_DATA.iter() {
info!("writing {test_data:?}");
log::info!("writing {test_data:?}");
let mut packet_iter = test_data.packets.iter();
let mut cea608_iter = test_data.cea608.iter();
let mut writer = CCDataWriter::default();
Expand Down
2 changes: 2 additions & 0 deletions src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

//! Module for the various [Code] tables available

use log::trace;

#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
pub enum CodeError {
/// Length of data does not match length advertised
Expand Down

0 comments on commit ba0232c

Please sign in to comment.