All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
13 lines
234 B
Rust
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 })))
|
|
}
|
|
}
|