Skip to content
Clone

style: apply rustfmt to the reformatted auth and config files

ZhenYi committed
parent 350bd30 commit d15ed7d Browse files

4 files changed

+7 −4

File tree 4
Modified lib/config/src/migrate.rs View lib/config/src/migrate.rs
@@ -14,7 +14,10 @@
1414 let config: Self = crate::loader::figment()?
1515 .extract()
1616 .map_err(ConfigError::from)?;
17 config.database.validate().map_err(ConfigError::Validation)?;
17 config
18 .database
19 .validate()
20 .map_err(ConfigError::Validation)?;
1821 Ok(config)
1922 }
2023}
Modified lib/git/src/handler/html/breadcrumbs.rs View lib/git/src/handler/html/breadcrumbs.rs
@@ -3,8 +3,8 @@
33
44use crate::handler::html::{HtmlRepoPath, archived_class, error, resolve, response_html};
55use crate::service::GitService;
6use crate::share::validate;
67use ::session::Session;
7use crate::share::validate;
88
99#[derive(Debug, Clone, serde::Deserialize, utoipa::IntoParams)]
1010pub struct BreadcrumbsQuery {
Modified lib/git/src/handler/html/last_commit.rs View lib/git/src/handler/html/last_commit.rs
@@ -6,8 +6,8 @@
66 HtmlRepoPath, archived_class, error, first_line, resolve, response_html, short_sha,
77};
88use crate::service::GitService;
9use crate::share::validate;
910use ::session::Session;
10use crate::share::validate;
1111
1212#[derive(Debug, Clone, serde::Deserialize, utoipa::IntoParams)]
1313pub struct LastCommitQuery {
Modified lib/git/src/handler/html/refs_dropdown.rs View lib/git/src/handler/html/refs_dropdown.rs
@@ -3,8 +3,8 @@
33
44use crate::handler::html::{HtmlRepoPath, archived_class, resolve, response_html};
55use crate::service::GitService;
6use crate::share::validate;
67use ::session::Session;
7use crate::share::validate;
88
99#[derive(Debug, Clone, serde::Deserialize, utoipa::IntoParams)]
1010pub struct RefsDropdownQuery {