From cac7487dbf88a3f46c249b3408f0969db409649c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gaier?= Date: Mon, 18 Dec 2023 15:05:18 -0500 Subject: [PATCH] Fix tool build --- src/Tools/psxreadmap/src/lib.rs | 2 +- src/Tools/run_cargo.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Tools/psxreadmap/src/lib.rs b/src/Tools/psxreadmap/src/lib.rs index 9e4f11b2..bf138261 100644 --- a/src/Tools/psxreadmap/src/lib.rs +++ b/src/Tools/psxreadmap/src/lib.rs @@ -14,7 +14,7 @@ pub use readmap_helper::get_tool_output; pub type EventReceiver = std::sync::mpsc::Receiver>; pub type Terminal = ratatui::Terminal>; -type ConsoleFrame<'a> = ratatui::Frame<'a, ratatui::backend::CrosstermBackend>; +type ConsoleFrame<'a> = ratatui::Frame<'a>; pub enum Event { Input(I), diff --git a/src/Tools/run_cargo.sh b/src/Tools/run_cargo.sh index 260c6ab4..2ff15971 100644 --- a/src/Tools/run_cargo.sh +++ b/src/Tools/run_cargo.sh @@ -32,6 +32,11 @@ elif [ $2 = clean ]; then echo "cargo clean $1" $HOME/.cargo/bin/cargo clean + exit $? +elif [ $2 = update ]; then + echo "cargo update $1" + $HOME/.cargo/bin/cargo update + exit $? else echo "Unkown cargo command $2 for project $1"