From 3e5d60b828bcf5fc909ccd146e1c528534a4018c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 24 Sep 2024 23:55:38 +0200 Subject: [PATCH] derive: clippy --- miniconf_derive/src/field.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniconf_derive/src/field.rs b/miniconf_derive/src/field.rs index ff0db32a..fe6720fd 100644 --- a/miniconf_derive/src/field.rs +++ b/miniconf_derive/src/field.rs @@ -154,9 +154,9 @@ impl TreeField { .map_err(|err| ::miniconf::Error::Inner(0, err)) #validator .and_then(|new| - #getter_mut.and_then(|item| { + #getter_mut.map(|item| { *item = new; - Ok(0) + 0 }) ) }