mirror of
https://github.com/jht5945/rust_util.git
synced 2026-01-13 07:40:05 +08:00
Compare commits
2 Commits
6e821a4cd9
...
807bf490fb
| Author | SHA1 | Date | |
|---|---|---|---|
| 807bf490fb | |||
| 6b4f7bf3ef |
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "rust_util"
|
||||
version = "0.6.16"
|
||||
version = "0.6.17"
|
||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "Hatter's Rust Util"
|
||||
|
||||
@@ -34,6 +34,9 @@ pub mod util_net;
|
||||
#[macro_export] macro_rules! debugging {
|
||||
($($arg:tt)+) => ( rust_util::util_msg::print_debug(&format!($($arg)+)); )
|
||||
}
|
||||
#[macro_export] macro_rules! opt_value {
|
||||
($e: expr) => ( match $e { Some(o) => o, None => return, } )
|
||||
}
|
||||
|
||||
pub type XResult<T> = Result<T, Box<dyn std::error::Error>>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user