Skip to content

Commit 1c03458

Browse files
author
Stephan Dilly
committed
merge uses
1 parent 8a1c03f commit 1c03458

File tree

20 files changed

+46
-46
lines changed

20 files changed

+46
-46
lines changed

asyncgit/src/diff.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
use crate::error::Result;
2-
use crate::{hash, sync, AsyncNotification, FileDiff, CWD};
1+
use crate::{
2+
error::Result, hash, sync, AsyncNotification, FileDiff, CWD,
3+
};
34
use crossbeam_channel::Sender;
45
use log::trace;
56
use std::{

asyncgit/src/revlog.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use crate::error::Result;
2-
use crate::{sync, AsyncNotification, CWD};
1+
use crate::{error::Result, sync, AsyncNotification, CWD};
32
use crossbeam_channel::Sender;
43
use git2::Oid;
54
use scopetime::scope_time;

asyncgit/src/status.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::{
2-
error::Result, hash, sync, AsyncNotification, StatusItem, CWD,
2+
error::Result, hash, sync, sync::status::StatusType,
3+
AsyncNotification, StatusItem, CWD,
34
};
45
use crossbeam_channel::Sender;
56
use log::trace;
@@ -10,7 +11,6 @@ use std::{
1011
Arc, Mutex,
1112
},
1213
};
13-
use sync::status::StatusType;
1414

1515
#[derive(Default, Hash, Clone)]
1616
pub struct Status {

asyncgit/src/sync/diff.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//! sync git api for fetching a diff
22
33
use super::utils;
4-
use crate::error::Result;
5-
use crate::{error::Error, hash};
4+
use crate::{error::Error, error::Result, hash};
65
use git2::{
76
Delta, Diff, DiffDelta, DiffFormat, DiffHunk, DiffOptions, Patch,
87
Repository,

asyncgit/src/sync/hooks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use crate::error::Result;
22
use scopetime::scope_time;
3-
use std::fs::File;
4-
use std::path::PathBuf;
53
use std::{
4+
fs::File,
65
io::{Read, Write},
76
path::Path,
7+
path::PathBuf,
88
process::Command,
99
};
1010

asyncgit/src/sync/hunks.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ use super::{
22
diff::{get_diff_raw, HunkHeader},
33
utils::repo,
44
};
5-
use crate::error::Result;
6-
use crate::{error::Error, hash};
5+
use crate::{error::Error, error::Result, hash};
76
use git2::{ApplyLocation, ApplyOptions, Diff};
87
use log::error;
98
use scopetime::scope_time;

asyncgit/src/sync/status.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! sync git api for fetching a status
22
3-
use crate::error::Result;
4-
use crate::{error::Error, sync::utils};
3+
use crate::{error::Error, error::Result, sync::utils};
54
use git2::{Status, StatusOptions, StatusShow};
65
use scopetime::scope_time;
76
use std::path::Path;

src/app.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::ui::style::Theme;
21
use crate::{
32
accessors,
43
components::{
@@ -10,6 +9,7 @@ use crate::{
109
queue::{InternalEvent, NeedsUpdate, Queue},
1110
strings,
1211
tabs::{Revlog, Status},
12+
ui::style::Theme,
1313
};
1414
use asyncgit::{sync, AsyncNotification, CWD};
1515
use crossbeam_channel::Sender;
@@ -18,8 +18,7 @@ use itertools::Itertools;
1818
use log::trace;
1919
use std::borrow::Cow;
2020
use strings::commands;
21-
use tui::style::Style;
22-
use tui::{
21+
use tui::{style::Style,
2322
backend::Backend,
2423
layout::{Alignment, Constraint, Direction, Layout, Rect},
2524
style::Modifier,

src/components/changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ use super::{
33
statustree::{MoveSelection, StatusTree},
44
CommandBlocking, DrawableComponent,
55
};
6-
use crate::ui::style::Theme;
76
use crate::{
87
components::{CommandInfo, Component},
98
keys,
109
queue::{InternalEvent, NeedsUpdate, Queue, ResetItem},
1110
strings, ui,
11+
ui::style::Theme,
1212
};
1313
use asyncgit::{hash, sync, StatusItem, StatusItemType, CWD};
1414
use crossterm::event::Event;

src/components/commit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ use super::{
22
visibility_blocking, CommandBlocking, CommandInfo, Component,
33
DrawableComponent,
44
};
5-
use crate::components::dialog_paragraph;
6-
use crate::ui::style::Theme;
75
use crate::{
6+
components::dialog_paragraph,
87
queue::{InternalEvent, NeedsUpdate, Queue},
98
strings, ui,
9+
ui::style::Theme,
1010
};
1111
use asyncgit::{sync, CWD};
1212
use crossterm::event::{Event, KeyCode};
1313
use log::error;
1414
use std::borrow::Cow;
1515
use strings::commands;
1616
use sync::HookResult;
17-
use tui::style::Style;
1817
use tui::{
1918
backend::Backend,
2019
layout::Rect,
20+
style::Style,
2121
widgets::{Clear, Text},
2222
Frame,
2323
};

0 commit comments

Comments
 (0)