Recover from 'pdf is damaged' err and update deps

This commit is contained in:
itsjunetime
2024-08-15 18:15:50 -06:00
parent f0c0e06c1c
commit 4296c92d7d
4 changed files with 108 additions and 94 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ struct LastRender {
}
#[derive(Default)]
enum BottomMessage {
pub enum BottomMessage {
#[default]
Help,
SearchResults(String),
@@ -45,7 +45,7 @@ enum BottomMessage {
Input(InputCommand)
}
enum InputCommand {
pub enum InputCommand {
GoToPage(usize),
Search(String)
}
@@ -503,7 +503,7 @@ impl Tui {
// We have `msg` as optional so that if they reset it to none, it'll replace it with
// `prev_msg`, but if they reset it to something else, it'll put the current thing in prev_msg
fn set_bottom_msg(&mut self, msg: Option<BottomMessage>) {
pub fn set_bottom_msg(&mut self, msg: Option<BottomMessage>) {
match msg {
Some(mut msg) => {
std::mem::swap(&mut self.bottom_msg, &mut msg);