Skip to content

Commit 0d258f4

Browse files
committed
just fmt
1 parent 36f7b78 commit 0d258f4

File tree

60 files changed

+187
-181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+187
-181
lines changed

gitoxide-core/src/repository/attributes/query.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use crate::OutputFormat;
21
use gix::repository::IndexPersistedOrInMemory;
32

3+
use crate::OutputFormat;
4+
45
pub struct Options {
56
pub format: OutputFormat,
67
pub statistics: bool,
@@ -10,12 +11,13 @@ pub(crate) mod function {
1011
use std::{io, path::Path};
1112

1213
use anyhow::{anyhow, bail};
13-
use gix::bstr::BStr;
14-
use gix::prelude::FindExt;
14+
use gix::{bstr::BStr, prelude::FindExt};
1515

16-
use crate::repository::PathsOrPatterns;
1716
use crate::{
18-
repository::attributes::query::{attributes_cache, Options},
17+
repository::{
18+
attributes::query::{attributes_cache, Options},
19+
PathsOrPatterns,
20+
},
1921
OutputFormat,
2022
};
2123

gitoxide-core/src/repository/attributes/validate_baseline.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ pub(crate) mod function {
1818
};
1919

2020
use anyhow::{anyhow, bail};
21-
use gix::bstr::BString;
22-
use gix::{attrs::Assignment, odb::FindExt, Progress};
21+
use gix::{attrs::Assignment, bstr::BString, odb::FindExt, Progress};
2322

2423
use crate::{
2524
repository::attributes::{query::attributes_cache, validate_baseline::Options},

gitoxide-core/src/repository/commit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use std::{io::Write, process::Stdio};
2+
13
use anyhow::{anyhow, bail, Context, Result};
2-
use std::io::Write;
3-
use std::process::Stdio;
44

55
/// Note that this is a quick implementation of commit signature verification that ignores a lot of what
66
/// git does and can do, while focussing on the gist of it.

gitoxide-core/src/repository/exclude.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
use std::io;
22

33
use anyhow::{anyhow, bail};
4-
use gix::bstr::BStr;
5-
use gix::prelude::FindExt;
4+
use gix::{bstr::BStr, prelude::FindExt};
65

7-
use crate::repository::PathsOrPatterns;
8-
use crate::OutputFormat;
6+
use crate::{repository::PathsOrPatterns, OutputFormat};
97

108
pub mod query {
119
use std::ffi::OsString;

gitoxide-core/src/repository/fetch.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ pub const PROGRESS_RANGE: std::ops::RangeInclusive<u8> = 1..=3;
1818

1919
pub(crate) mod function {
2020
use anyhow::bail;
21-
use gix::remote::fetch::refs::update::TypeChange;
22-
use gix::{prelude::ObjectIdExt, refspec::match_group::validate::Fix, remote::fetch::Status};
21+
use gix::{
22+
prelude::ObjectIdExt,
23+
refspec::match_group::validate::Fix,
24+
remote::fetch::{refs::update::TypeChange, Status},
25+
};
2326
use layout::{
2427
backends::svg::SVGWriter,
2528
core::{base::Orientation, geometry::Point, style::StyleAttr},

gitoxide-core/src/repository/index/entries.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,23 @@ pub enum Attributes {
1717
}
1818

1919
pub(crate) mod function {
20-
use gix::bstr::{BStr, BString};
21-
use std::collections::BTreeSet;
2220
use std::{
2321
borrow::Cow,
22+
collections::BTreeSet,
2423
io::{BufWriter, Write},
2524
};
2625

27-
use crate::OutputFormat;
28-
use gix::odb::FindExt;
29-
use gix::repository::IndexPersistedOrInMemory;
30-
use gix::Repository;
26+
use gix::{
27+
bstr::{BStr, BString},
28+
odb::FindExt,
29+
repository::IndexPersistedOrInMemory,
30+
Repository,
31+
};
3132

32-
use crate::repository::index::entries::{Attributes, Options};
33+
use crate::{
34+
repository::index::entries::{Attributes, Options},
35+
OutputFormat,
36+
};
3337

3438
pub fn entries(
3539
repo: gix::Repository,

gitoxide-core/src/repository/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use gix::bstr::BString;
21
use std::path::PathBuf;
32

43
use anyhow::{Context as AnyhowContext, Result};
4+
use gix::bstr::BString;
55

66
pub fn init(directory: Option<PathBuf>) -> Result<gix::discover::repository::Path> {
77
gix::create::into(

gix-actor/src/identity.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use bstr::ByteSlice;
2-
use winnow::error::StrContext;
3-
use winnow::prelude::*;
2+
use winnow::{error::StrContext, prelude::*};
43

54
use crate::{signature::decode, Identity, IdentityRef};
65

gix-actor/src/signature/decode.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ pub(crate) mod function {
33
use btoi::btoi;
44
use gix_date::{time::Sign, OffsetInSeconds, SecondsSinceUnixEpoch, Time};
55
use winnow::{
6-
combinator::alt,
7-
combinator::separated_pair,
8-
combinator::terminated,
6+
combinator::{alt, separated_pair, terminated},
97
error::{AddContext, ParserError, StrContext},
108
prelude::*,
119
stream::AsChar,

gix-actor/src/signature/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
mod _ref {
22
use bstr::ByteSlice;
3-
use winnow::error::StrContext;
4-
use winnow::prelude::*;
3+
use winnow::{error::StrContext, prelude::*};
54

65
use crate::{signature::decode, IdentityRef, Signature, SignatureRef};
76

0 commit comments

Comments
 (0)