Skip to content

Commit

Permalink
make fmt (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 7, 2022
1 parent cdca1df commit 636fa8a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
3 changes: 2 additions & 1 deletion git-index/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ pub(crate) mod extension;
pub mod entry;

mod access {
use crate::{Entry, State, Version};
use bstr::{BStr, ByteSlice};

use crate::{Entry, State, Version};

impl State {
pub fn version(&self) -> Version {
self.version
Expand Down
14 changes: 9 additions & 5 deletions git-worktree/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,18 @@ pub mod index {
}

pub(crate) mod entry {
use crate::index;
use std::{
convert::TryInto,
fs::{create_dir_all, OpenOptions},
io::Write,
time::Duration,
};

use git_hash::oid;
use git_index::Entry;
use git_object::bstr::{BStr, ByteSlice};
use std::convert::TryInto;
use std::fs::{create_dir_all, OpenOptions};
use std::io::Write;
use std::time::Duration;

use crate::index;

pub fn checkout<Find>(
entry: &mut Entry,
Expand Down
9 changes: 5 additions & 4 deletions git-worktree/tests/copy_index/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use crate::{dir_structure, fixture_path};
use std::fs;
#[cfg(unix)]
use std::os::unix::prelude::MetadataExt;

use git_object::bstr::ByteSlice;
use git_odb::FindExt;
use git_worktree::index;
use std::fs;

#[cfg(unix)]
use std::os::unix::prelude::MetadataExt;
use crate::{dir_structure, fixture_path};

#[test]
fn test_copy_index() -> crate::Result<()> {
Expand Down
1 change: 1 addition & 0 deletions git-worktree/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::path::{Path, PathBuf};

use walkdir::WalkDir;

mod copy_index;
Expand Down

0 comments on commit 636fa8a

Please sign in to comment.