Files
gitnow/crates/gitnow/src/app.rs
kjuulh 6ab02860b3
All checks were successful
continuous-integration/drone/push Build is passing
refactor: separate files
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-09-13 19:52:14 +02:00

13 lines
234 B
Rust

use crate::config::Config;
#[derive(Debug)]
pub struct App {
pub config: Config,
}
impl App {
pub async fn new_static(config: Config) -> anyhow::Result<&'static App> {
Ok(Box::leak(Box::new(App { config })))
}
}