From e84bd34bd9ad3ef56cdd3e3464df32c9999a5801 Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Fri, 8 Apr 2022 04:16:39 -0400 Subject: [PATCH] Fix failing doc test --- src/auth.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index e1616b0..b7ce2a1 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -28,13 +28,13 @@ impl Authenticator { /// Validate a reply to a challenge. /// /// ``` - /// use uuid:Uuid; - /// use crate::auth::Authenticator; + /// use bore_cli::auth::Authenticator; + /// use uuid::Uuid; /// /// let auth = Authenticator::new("secret"); /// let challenge = Uuid::new_v4(); /// - /// assert!(auth.validate(&challenge, auth.answer(&challenge))); + /// assert!(auth.validate(&challenge, &auth.answer(&challenge))); /// assert!(!auth.validate(&challenge, "wrong answer")); /// ``` pub fn validate(&self, challenge: &Uuid, tag: &str) -> bool {