Added pre-commit and pre-push hooks with the help of cargo-husky. This also means that I need to temporarily allow specific bits of dead code until I implement support for at least one more Servarr

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 74502f5462
commit d5117fda39
8 changed files with 59 additions and 4 deletions
+3 -1
View File
@@ -12,7 +12,7 @@ use crate::models::{HorizontallyScrollableText, Route, TabRoute, TabState};
use crate::network::NetworkEvent;
pub(crate) mod key_binding;
pub mod radarr;
pub(crate) mod radarr;
const DEFAULT_ROUTE: Route = Route::Radarr(ActiveRadarrBlock::Movies, None);
@@ -58,6 +58,8 @@ impl App {
self.tick_count = 0;
}
// Allowing this code for now since we'll eventually be implementing additional Servarr support and we'll need it then
#[allow(dead_code)]
pub fn reset(&mut self) {
self.reset_tick_count();
self.error = HorizontallyScrollableText::default();