Fixed the examples and tests to follow the Rust 2018 style.
This commit is contained in:
parent
d91d4c16f2
commit
619f14ac67
@ -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.");
|
||||
|
@ -1,5 +1,4 @@
|
||||
#[macro_use]
|
||||
extern crate scribe;
|
||||
use scribe::{debug, info, warn};
|
||||
|
||||
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
#[macro_use]
|
||||
extern crate scribe;
|
||||
|
||||
|
||||
#[test]
|
||||
pub fn test_blank()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user