refactor: extract constants

This commit is contained in:
🪞👃🪞 2025-04-06 19:32:29 +03:00
parent 84f183ab84
commit 36423fc994
7 changed files with 65 additions and 52 deletions

View file

@ -18,12 +18,11 @@ use xxhash_rust::xxh3::xxh3_64;
mod keys;
mod view; use self::view::*;
mod model; pub(crate) use self::model::*;
mod constants; pub(crate) use self::constants::*;
pub(crate) type Usually<T> = std::result::Result<T, Box<dyn std::error::Error>>;
pub(crate) type Perhaps<T> = Usually<Option<T>>;
pub(crate) const PAGE_SIZE: usize = 10;
fn cli () -> clap::Command {
command!()
.arg(arg!([path] "Path to root directory")