From 7b91fad41ff7eeed381522cb5417d9d696d867df Mon Sep 17 00:00:00 2001 From: HouXiaoxuan Date: Fri, 22 Dec 2023 11:08:26 +0800 Subject: [PATCH] fix type error --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index f7c6f92..617b30b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -155,7 +155,7 @@ pub fn handle_command() { if source.is_none() { source = Some("HEAD".to_string()); } - restore(path, source, worktree, staged); + restore(path, source.unwrap(), worktree, staged); } } }