mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Make the log macro's definition more consise
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#![macro_use]
|
||||
extern crate unshell;
|
||||
|
||||
use unshell::{
|
||||
Value, info,
|
||||
logger::{Record, log},
|
||||
obfuscate::{junk_asm, symbol},
|
||||
tree::{Tree, TreeElement, symbols},
|
||||
};
|
||||
@@ -31,9 +33,9 @@ fn test123(manager: &mut Tree) -> bool {
|
||||
|
||||
let is_null = result.is_null();
|
||||
|
||||
if let Ok(result) = serde_json::from_value::<Record>(result) {
|
||||
log(&result);
|
||||
}
|
||||
// if let Ok(result) = serde_json::from_value::<Record>(result) {
|
||||
// log(&result);
|
||||
// }
|
||||
|
||||
is_null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user