~matthiasbeyer/imag

c09c5b8badfc0c805304ce2a66d776df2d403323 — Matthias Beyer 2 years ago 2185d44
Remove use of Itertools

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 3 insertions(+), 3 deletions(-)

M lib/core/libimagrt/src/configuration.rs
M lib/core/libimagrt/src/configuration.rs => lib/core/libimagrt/src/configuration.rs +3 -3
@@ 40,8 40,6 @@ pub fn fetch_config(searchpath: &PathBuf) -> Result<Option<Value>> {
    use std::io::Write;
    use std::io::stderr;

    use itertools::Itertools;

    use libimagutil::variants::generate_variants as gen_vars;
    use libimagerror::trace::trace_error;



@@ 65,7 63,9 @@ pub fn fetch_config(searchpath: &PathBuf) -> Result<Option<Value>> {
            .unwrap_or(vec![]),
    ];

    let config = Itertools::flatten(vals.iter())
    let config = vals
        .iter()
        .flatten()
        .filter(|path| path.exists() && path.is_file())
        .filter_map(|path| {
            let content = {