Make history-related constants configurable
Some checks failed
CI / lint (push) Failing after 59s
CI / Build and test (, 1.73.0) (push) Failing after 5m1s
CI / Build and test (, beta) (push) Failing after 5m8s
CI / Build and test (, nightly) (push) Failing after 4m46s

This commit is contained in:
2023-11-22 16:51:29 +01:00
parent 501ccc007e
commit d79f5d7527
8 changed files with 60 additions and 14 deletions

View File

@ -14,6 +14,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use std::sync::Arc;
use std::path::PathBuf;
use color_eyre::eyre::WrapErr;
@ -29,7 +30,7 @@ fn config() -> Config {
std::env::set_var("RATATRIX_CONFIG", PathBuf::from(".config/"));
let c = Config::new();
std::env::remove_var("RATATRIX_CONFIG");
c.unwrap()
Arc::new(c.unwrap())
}
fn rect(x: u16, y: u16, width: u16, height: u16) -> Rect {