~matthiasbeyer/imag

02604ae58be17a9ab980b24b29192500c6658f9d — Matthias Beyer 1 year, 4 months ago 43b9f6a
Remove DebugResult and DebugOption helpers

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
M bin/domain/imag-diary/src/create.rs => bin/domain/imag-diary/src/create.rs +0 -1
@@ 30,7 30,6 @@ use option_inspect::*;
use libimagdiary::diary::Diary;
use libimagentryedit::edit::Edit;
use libimagrt::runtime::Runtime;
use libimagutil::debug_option::DebugOption;
use libimagstore::store::FileLockEntry;
use libimagstore::store::Store;


M bin/domain/imag-habit/src/lib.rs => bin/domain/imag-habit/src/lib.rs +0 -1
@@ 76,7 76,6 @@ use libimaghabit::habit::HabitTemplate;
use libimagstore::store::FileLockEntry;
use libimagstore::iter::get::StoreIdGetIteratorExtension;
use libimaginteraction::ask::ask_bool;
use libimagutil::debug_result::DebugResult;


mod ui;

M lib/core/libimagrt/src/runtime.rs => lib/core/libimagrt/src/runtime.rs +0 -1
@@ 44,7 44,6 @@ use libimagerror::errors::ErrorMsg as EM;
use libimagerror::trace::*;
use libimagstore::store::Store;
use libimagstore::storeid::StoreId;
use libimagutil::debug_result::DebugResult;
use crate::spec::CliSpec;
use atty;


M lib/domain/libimaghabit/src/habit.rs => lib/domain/libimaghabit/src/habit.rs +0 -1
@@ 270,7 270,6 @@ pub mod builder {
    use libimagstore::storeid::StoreId;
    use libimagstore::store::FileLockEntry;
    use libimagentryutil::isa::Is;
    use libimagutil::debug_result::DebugResult;

    use failure::Error;
    use failure::Fallible as Result;

M lib/entry/libimagentrylink/src/storecheck.rs => lib/entry/libimagentrylink/src/storecheck.rs +0 -1
@@ 21,7 21,6 @@ use std::collections::HashMap;

use libimagstore::store::Store;
use libimagstore::storeid::StoreId;
use libimagutil::debug_result::DebugResult;

use failure::ResultExt;
use failure::Fallible as Result;

M lib/entry/libimagentryurl/src/iter.rs => lib/entry/libimagentryurl/src/iter.rs +0 -1
@@ 32,7 32,6 @@
use libimagentrylink::link::Link;
use libimagentrylink::iter::LinkIter;
use libimagstore::store::Store;
use libimagutil::debug_result::DebugResult;

use failure::Fallible as Result;
use failure::ResultExt;

D lib/etc/libimagutil/src/debug_option.rs => lib/etc/libimagutil/src/debug_option.rs +0 -28
@@ 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); }
);


D lib/etc/libimagutil/src/debug_result.rs => lib/etc/libimagutil/src/debug_result.rs +0 -29
@@ 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); }
);

M lib/etc/libimagutil/src/lib.rs => lib/etc/libimagutil/src/lib.rs +0 -2
@@ 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;