mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
fix clippy nightly
This commit is contained in:
parent
b987598c7b
commit
8d2de65868
3 changed files with 8 additions and 6 deletions
|
|
@ -253,8 +253,8 @@ pub fn get_diff_commits(
|
||||||
///
|
///
|
||||||
//TODO: refactor into helper type with the inline closures as dedicated functions
|
//TODO: refactor into helper type with the inline closures as dedicated functions
|
||||||
#[allow(clippy::too_many_lines)]
|
#[allow(clippy::too_many_lines)]
|
||||||
fn raw_diff_to_file_diff<'a>(
|
fn raw_diff_to_file_diff(
|
||||||
diff: &'a Diff,
|
diff: &Diff,
|
||||||
work_dir: &Path,
|
work_dir: &Path,
|
||||||
) -> Result<FileDiff> {
|
) -> Result<FileDiff> {
|
||||||
let res = Rc::new(RefCell::new(FileDiff::default()));
|
let res = Rc::new(RefCell::new(FileDiff::default()));
|
||||||
|
|
|
||||||
|
|
@ -445,7 +445,7 @@ impl App {
|
||||||
self.process_queue(flags)?;
|
self.process_queue(flags)?;
|
||||||
} else if let InputEvent::State(polling_state) = ev {
|
} else if let InputEvent::State(polling_state) = ev {
|
||||||
self.external_editor_popup.hide();
|
self.external_editor_popup.hide();
|
||||||
if let InputState::Paused = polling_state {
|
if matches!(polling_state, InputState::Paused) {
|
||||||
let result = match self.file_to_open.take() {
|
let result = match self.file_to_open.take() {
|
||||||
Some(path) => {
|
Some(path) => {
|
||||||
ExternalEditorComponent::open_file_in_editor(
|
ExternalEditorComponent::open_file_in_editor(
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ fn run_app(
|
||||||
};
|
};
|
||||||
|
|
||||||
{
|
{
|
||||||
if let QueueEvent::SpinnerUpdate = event {
|
if matches!(event, QueueEvent::SpinnerUpdate) {
|
||||||
spinner.update();
|
spinner.update();
|
||||||
spinner.draw(terminal)?;
|
spinner.draw(terminal)?;
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -224,8 +224,10 @@ fn run_app(
|
||||||
|
|
||||||
match event {
|
match event {
|
||||||
QueueEvent::InputEvent(ev) => {
|
QueueEvent::InputEvent(ev) => {
|
||||||
if let InputEvent::State(InputState::Polling) = ev
|
if matches!(
|
||||||
{
|
ev,
|
||||||
|
InputEvent::State(InputState::Polling)
|
||||||
|
) {
|
||||||
//Note: external ed closed, we need to re-hide cursor
|
//Note: external ed closed, we need to re-hide cursor
|
||||||
terminal.hide_cursor()?;
|
terminal.hide_cursor()?;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue