From 01206ac88e73408ef8d07dcad642c335edeb8234 Mon Sep 17 00:00:00 2001 From: HouXiaoxuan Date: Sat, 23 Dec 2023 17:43:16 +0800 Subject: [PATCH] =?UTF-8?q?format=E5=BD=B1=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/restore.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/commands/restore.rs b/src/commands/restore.rs index 1a39cbf..14254dd 100644 --- a/src/commands/restore.rs +++ b/src/commands/restore.rs @@ -1,10 +1,16 @@ -use std::collections::{HashMap, HashSet}; -use std::{fs, path::PathBuf}; +use std::{ + collections::{HashMap, HashSet}, + fs, + path::PathBuf, +}; -use crate::models::index::FileMetaData; use crate::{ head, - models::{commit::Commit, index::Index, object::Hash}, + models::{ + commit::Commit, + index::{FileMetaData, Index}, + object::Hash, + }, store::Store, utils::{util, util::get_working_dir}, };