Make Server fields private
This commit is contained in:
parent
afb7a94348
commit
7e8fd7a9aa
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue