From 94bd11bae2637ee23f0bbb180b03158bf4d4ff82 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 18 Dec 2020 14:01:18 +0100 Subject: [PATCH] typo fixups Signed-off-by: Wolfgang Bumiller --- src/config/tfa.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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> {