router change made one level of rpcenv mut superfluous
Created via `cargo fix`. see commit 47acc8dc8f68ed2c5db69b1678b479e05b0a3194 from proxmox-rs Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -30,7 +30,7 @@ use pbs_config::domains;
|
||||
/// List configured OpenId realms
|
||||
pub fn list_openid_realms(
|
||||
_param: Value,
|
||||
mut rpcenv: &mut dyn RpcEnvironment,
|
||||
rpcenv: &mut dyn RpcEnvironment,
|
||||
) -> Result<Vec<OpenIdRealmConfig>, Error> {
|
||||
let (config, digest) = domains::config()?;
|
||||
|
||||
@ -132,7 +132,7 @@ pub fn delete_openid_realm(
|
||||
/// Read the OpenID realm configuration
|
||||
pub fn read_openid_realm(
|
||||
realm: String,
|
||||
mut rpcenv: &mut dyn RpcEnvironment,
|
||||
rpcenv: &mut dyn RpcEnvironment,
|
||||
) -> Result<OpenIdRealmConfig, Error> {
|
||||
let (domains, digest) = domains::config()?;
|
||||
|
||||
|
@ -38,7 +38,7 @@ const WEBAUTHN_ROUTER: Router = Router::new()
|
||||
)]
|
||||
/// Get the TFA configuration.
|
||||
pub fn get_webauthn_config(
|
||||
mut rpcenv: &mut dyn RpcEnvironment,
|
||||
rpcenv: &mut dyn RpcEnvironment,
|
||||
) -> Result<Option<WebauthnConfig>, Error> {
|
||||
let (config, digest) = match tfa::webauthn_config()? {
|
||||
Some(c) => c,
|
||||
|
Reference in New Issue
Block a user