diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-12-23 13:38:52 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-12-23 13:38:52 +0100 |
commit | e12ee775ada7ca26d715501336ba7d1af665eea1 (patch) | |
tree | 494e06858d49e2f899b92823fed10b100d21ea24 /lib/etc | |
parent | 1c5a81d5b024ef90a45345dc3dc13481afb7929a (diff) | |
parent | 02604ae58be17a9ab980b24b29192500c6658f9d (diff) |
Merge branch 'replace-map-dbg-err' into master
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/etc')
-rw-r--r-- | lib/etc/libimagutil/src/debug_option.rs | 28 | ||||
-rw-r--r-- | lib/etc/libimagutil/src/debug_result.rs | 29 | ||||
-rw-r--r-- | lib/etc/libimagutil/src/lib.rs | 2 |
3 files changed, 0 insertions, 59 deletions
diff --git a/lib/etc/libimagutil/src/debug_option.rs b/lib/etc/libimagutil/src/debug_option.rs deleted file mode 100644 index 4f27279a..00000000 --- a/lib/etc/libimagutil/src/debug_option.rs +++ /dev/null @@ -1,28 +0,0 @@ -// -// imag - the personal information management suite for the commandline -// Copyright (C) 2015-2019 Matthias Beyer <mail@beyermatthias.de> and contributors -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; version -// 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -// - -// Generates a extension for the `Option<T>`, named `DebugOption` which has functionality to -// print `T` via `debug!()`. -generate_option_logging_extension!( - DebugOption, - map_dbg, - map_dbg_str, - |s| { debug!("{}", s); } -); - diff --git a/lib/etc/libimagutil/src/debug_result.rs b/lib/etc/libimagutil/src/debug_result.rs deleted file mode 100644 index dad06723..00000000 --- a/lib/etc/libimagutil/src/debug_result.rs +++ /dev/null @@ -1,29 +0,0 @@ -// -// imag - the personal information management suite for the commandline -// Copyright (C) 2015-2019 Matthias Beyer <mail@beyermatthias.de> and contributors -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; version -// 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -// - -// Generates a extension for the `Result<T, E>`, named `DebugResult` which has functionality to -// print either `T` or `E` via `debug!()`. -generate_result_logging_extension!( - DebugResult, - map_dbg, - map_dbg_str, - map_dbg_err, - map_dbg_err_str, - |s| { debug!("{}", s); } -); diff --git a/lib/etc/libimagutil/src/lib.rs b/lib/etc/libimagutil/src/lib.rs index 08de2392..77ee632b 100644 --- a/lib/etc/libimagutil/src/lib.rs +++ b/lib/etc/libimagutil/src/lib.rs @@ -47,8 +47,6 @@ extern crate chrono; #[macro_use] mod log_option; pub mod cli_validators; pub mod date; -pub mod debug_result; -pub mod debug_option; pub mod edit; pub mod info_result; pub mod info_option; |