style: Addressed formatting issues

This commit is contained in:
2025-09-12 11:52:08 -06:00
parent f7993714ec
commit 7d63647f16
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ use anyhow::Result;
use log::debug; use log::debug;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use serde_with::serde_as; use serde_with::serde_as;
use serde_with::{skip_serializing_none, DisplayFromStr}; use serde_with::{DisplayFromStr, skip_serializing_none};
use std::borrow::Cow; use std::borrow::Cow;
use std::path::PathBuf; use std::path::PathBuf;
use validator::{Validate, ValidationError}; use validator::{Validate, ValidationError};
@@ -116,7 +116,7 @@ pub struct ProviderConfig {
#[validate(required)] #[validate(required)]
pub name: Option<String>, pub name: Option<String>,
#[serde_as(as = "DisplayFromStr")] #[serde_as(as = "DisplayFromStr")]
#[serde(rename(deserialize = "type"))] #[serde(rename(deserialize = "type"))]
pub provider_type: SupportedProvider, pub provider_type: SupportedProvider,
pub password_file: Option<PathBuf>, pub password_file: Option<PathBuf>,
pub git_branch: Option<String>, pub git_branch: Option<String>,
+1 -1
View File
@@ -1,8 +1,8 @@
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use gman::config::{Config, ProviderConfig, RunConfig}; use gman::config::{Config, ProviderConfig, RunConfig};
use gman::providers::local::LocalProvider;
use gman::providers::SupportedProvider; use gman::providers::SupportedProvider;
use gman::providers::local::LocalProvider;
use pretty_assertions::assert_eq; use pretty_assertions::assert_eq;
use validator::Validate; use validator::Validate;