mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-07-02 17:26:05 +08:00
重新format,对use进行排序
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
use crate::models::object::Hash;
|
||||
use crate::store::Store;
|
||||
use crate::utils::util::calc_hash;
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
use crate::{models::object::Hash, store::Store, utils::util::calc_hash};
|
||||
use std::{fs, path::Path};
|
||||
|
||||
/**
|
||||
Blob
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
use crate::models::blob::Blob;
|
||||
use crate::models::object::Hash;
|
||||
use crate::utils::util;
|
||||
use crate::utils::util::get_relative_path;
|
||||
use crate::{
|
||||
models::{blob::Blob, object::Hash},
|
||||
utils::{util, util::get_relative_path},
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::HashMap;
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::time::SystemTime;
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
fs,
|
||||
path::{Path, PathBuf},
|
||||
time::SystemTime,
|
||||
};
|
||||
|
||||
// 文件元数据结构
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
|
||||
@@ -150,9 +150,10 @@ impl Tree {
|
||||
mod test {
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::models::blob::Blob;
|
||||
use crate::models::index::FileMetaData;
|
||||
use crate::utils::util;
|
||||
use crate::{
|
||||
models::{blob::Blob, index::FileMetaData},
|
||||
utils::util,
|
||||
};
|
||||
#[test]
|
||||
fn test_new() {
|
||||
util::setup_test_with_clean_mit();
|
||||
|
||||
Reference in New Issue
Block a user