From e9ba648572adbc8cc5d21e4ec6087a054dd05562 Mon Sep 17 00:00:00 2001 From: Zokhoi <20432565+Zokhoi@users.noreply.github.com> Date: Tue, 7 Nov 2023 02:42:13 +0800 Subject: [PATCH] Use map instead of and_then --- deepwell/src/services/view/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepwell/src/services/view/service.rs b/deepwell/src/services/view/service.rs index a3c1c17fe6..17de211c7d 100644 --- a/deepwell/src/services/view/service.rs +++ b/deepwell/src/services/view/service.rs @@ -340,7 +340,7 @@ impl ViewService { None => viewer .user_session .as_ref() - .and_then(|session| Some(session.user.clone())), + .map(|session| session.user.clone()), }; let output = match user {