diff --git a/src/config/tfa.rs b/src/config/tfa.rs index 67ef62c6..0abd4b0e 100644 --- a/src/config/tfa.rs +++ b/src/config/tfa.rs @@ -107,26 +107,26 @@ impl webauthn_rs::WebauthnConfig for WebauthnConfig { } } -/// Heper to get a u2f instance from a u2f config, or `None` if there isn't one configured. +/// Helper to get a u2f instance from a u2f config, or `None` if there isn't one configured. fn get_u2f(u2f: &Option) -> Option { u2f.as_ref() .map(|cfg| u2f::U2f::new(cfg.appid.clone(), cfg.appid.clone())) } -/// Heper to get a u2f instance from a u2f config. +/// Helper to get a u2f instance from a u2f config. /// /// This is outside of `TfaConfig` to not borrow its `&self`. fn check_u2f(u2f: &Option) -> Result { get_u2f(u2f).ok_or_else(|| format_err!("no u2f configuration available")) } -/// Heper to get a `Webauthn` instance from a `WebauthnConfig`, or `None` if there isn't one +/// Helper to get a `Webauthn` instance from a `WebauthnConfig`, or `None` if there isn't one /// configured. fn get_webauthn(waconfig: &Option) -> Option> { waconfig.clone().map(Webauthn::new) } -/// Heper to get a u2f instance from a u2f config. +/// Helper to get a u2f instance from a u2f config. /// /// This is outside of `TfaConfig` to not borrow its `&self`. fn check_webauthn(waconfig: &Option) -> Result, Error> {