Make Server fields private

This commit is contained in:
Joscha 2023-08-08 23:43:42 +02:00
parent afb7a94348
commit 7e8fd7a9aa

View file

@ -56,9 +56,9 @@ fn open_repo(repo_path: &Path) -> somehow::Result<ThreadSafeRepository> {
#[derive(Clone, FromRef)] #[derive(Clone, FromRef)]
pub struct Server { pub struct Server {
pub config: &'static Config, config: &'static Config,
pub db: SqlitePool, db: SqlitePool,
pub repo: Arc<ThreadSafeRepository>, repo: Arc<ThreadSafeRepository>,
} }
impl Server { impl Server {