chore: rustfmt the workspace and make clippy -D warnings pass
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,12 +30,15 @@ pub struct CaptureResult {
|
||||
pub restore_hints: Value,
|
||||
}
|
||||
|
||||
pub fn provider_from_config(kind: &ProviderKind, config: &Value) -> Result<Box<dyn BackupProvider>> {
|
||||
pub fn provider_from_config(
|
||||
kind: &ProviderKind,
|
||||
config: &Value,
|
||||
) -> Result<Box<dyn BackupProvider>> {
|
||||
match kind {
|
||||
ProviderKind::Filesystem => Ok(Box::new(FilesystemProvider::from_config(config)?)),
|
||||
ProviderKind::Postgres => Ok(Box::new(PostgresProvider::from_config(config)?)),
|
||||
ProviderKind::Command => anyhow::bail!(
|
||||
"command provider is outside this release; use filesystem or postgres"
|
||||
),
|
||||
ProviderKind::Command => {
|
||||
anyhow::bail!("command provider is outside this release; use filesystem or postgres")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user