From a298b6ffcbc3abe39ad747463ed61bdcd0a55ad1 Mon Sep 17 00:00:00 2001 From: "Hatter Jiang@Pixelbook" Date: Sun, 2 Aug 2020 11:52:29 +0800 Subject: [PATCH] fix: fix use --- Cargo.toml | 2 +- src/lib.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9f2eeb3..ce115aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_util" -version = "0.6.0" +version = "0.6.1" authors = ["Hatter Jiang "] edition = "2018" description = "Hatter's Rust Util" diff --git a/src/lib.rs b/src/lib.rs index ab79e86..6db3ce8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,19 +19,19 @@ pub mod util_time; ($c:expr, $t:expr, $f:expr) => ( if $c { $t } else { $f } ) } #[macro_export] macro_rules! information { - ($($arg:tt)+) => ( crate::util_msg::print_info(&format!($($arg)+)); ) + ($($arg:tt)+) => ( rust_util::util_msg::print_info(&format!($($arg)+)); ) } #[macro_export] macro_rules! success { - ($($arg:tt)+) => ( crate::util_msg::print_ok(&format!($($arg)+)); ) + ($($arg:tt)+) => ( rust_util::util_msg::print_ok(&format!($($arg)+)); ) } #[macro_export] macro_rules! warning { - ($($arg:tt)+) => ( crate::util_msg::print_warn(&format!($($arg)+)); ) + ($($arg:tt)+) => ( rust_util::util_msg::print_warn(&format!($($arg)+)); ) } #[macro_export] macro_rules! failure { - ($($arg:tt)+) => ( crate::util_msg::print_error(&format!($($arg)+)); ) + ($($arg:tt)+) => ( rust_util::util_msg::print_error(&format!($($arg)+)); ) } #[macro_export] macro_rules! debugging { - ($($arg:tt)+) => ( crate::util_msg::print_debug(&format!($($arg)+)); ) + ($($arg:tt)+) => ( rust_util::util_msg::print_debug(&format!($($arg)+)); ) } pub type XResult = Result>;