Fixed the examples and tests to follow the Rust 2018 style.

This commit is contained in:
Myrddin Dundragon 2019-01-21 17:00:35 -05:00
parent d91d4c16f2
commit 619f14ac67
3 changed files with 6 additions and 13 deletions

View File

@ -1,14 +1,10 @@
#[macro_use]
extern crate scribe;
use scribe::{debug, info, warn};
use scribe::{Levels, Logger, Record};
#[cfg(not(feature="use_std"))]
const core_logger: TestLogger = TestLogger {};
const CORE_LOGGER: TestLogger = TestLogger {};
@ -66,7 +62,7 @@ impl TestLogger
#[cfg(not(feature="use_std"))]
fn set_logger() -> *const Logger
{
&core_logger
&CORE_LOGGER
}
}
@ -93,6 +89,8 @@ impl Logger for TestLogger
mod temp_mod
{
use scribe::info;
pub fn print()
{
info!("Mod test.");

View File

@ -1,5 +1,4 @@
#[macro_use]
extern crate scribe;
use scribe::{debug, info, warn};

View File

@ -1,7 +1,3 @@
#[macro_use]
extern crate scribe;
#[test]
pub fn test_blank()
{