Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
PThorpe92 committed Dec 29, 2023
1 parent 4581ea3 commit 888c30a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Empty file removed output
Empty file.
3 changes: 1 addition & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use crate::database::db::{SavedCommand, SavedKey, DB};
use crate::display::menuopts::OPTION_PADDING_MID;
use crate::display::{AppOptions, HeaderKind};
use crate::request::command::{Cmd, CmdOpts, CMD};
use crate::request::command::{CmdOpts, CMD};
use crate::request::curl::{AuthKind, Curl};
use crate::screens::screen::Screen;
use crate::Config;
use arboard::Clipboard;
use std::rc::Rc;
use std::{error, mem};
use tui::widgets::{ListItem, ListState};
use tui_input::Input;
Expand Down
1 change: 1 addition & 0 deletions src/request/wget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ impl Wget {
}
}

#[cfg(test)]
mod tests {
use super::*;
use mockito::ServerGuard;
Expand Down
8 changes: 6 additions & 2 deletions src/screens/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ pub fn handle_response_screen<B: Backend>(app: &mut App, frame: &mut Frame<'_, B
app.goto_screen(Screen::Error(e));
});
} else {
let _ = app.copy_to_clipboard(
app.copy_to_clipboard(
app.command.as_ref().unwrap().get_command_string().as_str(),
);
)
.unwrap_or_else(|e| {
app.goto_screen(Screen::Error(e));
});
}
app.goto_screen(Screen::Success);
}
4 => {
// Return To Home
Expand Down

0 comments on commit 888c30a

Please sign in to comment.