mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-19 06:19:31 +00:00
run clippy fix
This commit is contained in:
@@ -38,9 +38,9 @@ pub async fn handle_membership_command(
|
||||
MembershipArgs { command }: MembershipArgs,
|
||||
) -> anyhow::Result<()> {
|
||||
let id = match &command {
|
||||
MembershipCommand::Assign(AssignArgs { id, .. }) => id,
|
||||
MembershipCommand::Remove(RemoveArgs { id, .. }) => id,
|
||||
MembershipCommand::List(ListArgs { id }) => id,
|
||||
MembershipCommand::Assign(AssignArgs { id, .. })
|
||||
| MembershipCommand::Remove(RemoveArgs { id, .. })
|
||||
| MembershipCommand::List(ListArgs { id }) => id,
|
||||
};
|
||||
|
||||
match &command {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use crate::config::{
|
||||
Config, DataStoreConfig, DavPushConfig, HttpConfig, SqliteDataStoreConfig, TracingConfig,
|
||||
Config, DataStoreConfig, DavPushConfig, HttpConfig, NextcloudLoginConfig,
|
||||
SqliteDataStoreConfig, TracingConfig,
|
||||
};
|
||||
use clap::Parser;
|
||||
use rustical_frontend::FrontendConfig;
|
||||
@@ -23,7 +24,7 @@ pub fn cmd_gen_config(_args: GenConfigArgs) -> anyhow::Result<()> {
|
||||
},
|
||||
oidc: None,
|
||||
dav_push: DavPushConfig::default(),
|
||||
nextcloud_login: Default::default(),
|
||||
nextcloud_login: NextcloudLoginConfig::default(),
|
||||
};
|
||||
let generated_config = toml::to_string(&config)?;
|
||||
println!("{generated_config}");
|
||||
|
||||
@@ -140,7 +140,7 @@ pub async fn cmd_principals(args: PrincipalsArgs) -> anyhow::Result<()> {
|
||||
.unwrap()
|
||||
.to_string()
|
||||
.into(),
|
||||
)
|
||||
);
|
||||
}
|
||||
if name.is_some() {
|
||||
principal.displayname = name;
|
||||
@@ -152,7 +152,7 @@ pub async fn cmd_principals(args: PrincipalsArgs) -> anyhow::Result<()> {
|
||||
println!("Principal {id} updated");
|
||||
}
|
||||
Command::Membership(args) => {
|
||||
handle_membership_command(principal_store.as_ref(), args).await?
|
||||
handle_membership_command(principal_store.as_ref(), args).await?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user