mirror of
https://github.com/CloudNebulaProject/barycenter.git
synced 2026-04-10 13:10:42 +00:00
chore: fix formatting
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
This commit is contained in:
parent
01f4dce818
commit
85cd971aa4
1 changed files with 1 additions and 3 deletions
|
|
@ -2,8 +2,7 @@ use miette::{IntoDiagnostic, Result};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||||
#[derive(Default)]
|
|
||||||
pub struct Settings {
|
pub struct Settings {
|
||||||
pub server: Server,
|
pub server: Server,
|
||||||
pub database: Database,
|
pub database: Database,
|
||||||
|
|
@ -72,7 +71,6 @@ impl Default for Keys {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl Settings {
|
impl Settings {
|
||||||
pub fn load(path: &str) -> Result<Self> {
|
pub fn load(path: &str) -> Result<Self> {
|
||||||
let mut builder = config::Config::builder()
|
let mut builder = config::Config::builder()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue