From d822cd6f6b83262c129d34f6543994b6bc2b763b Mon Sep 17 00:00:00 2001 From: Antonio Gurgel Date: Fri, 20 May 2022 18:03:31 -0700 Subject: [PATCH] Add missing comments --- src/auth.rs | 1 + src/cli.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/auth.rs b/src/auth.rs index 5c8c94b..13bbe79 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -9,6 +9,7 @@ use crate::{ tui::{prompt, EchoInput}, }; +/// Authenticates a user. pub trait Authenticator { fn authenticate(&mut self) -> Result<()>; fn username(&self) -> &str; // For lack of trait fields. diff --git a/src/cli.rs b/src/cli.rs index 95a544a..c016c67 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -105,6 +105,7 @@ pub fn init_log_file(path: &Path, verbosity: LevelFilter) -> Result<()> { Ok(()) } +/// Initializes either a log file or a syslog connection. pub fn init_logger(opts: &Options) -> Result<()> { match &opts.log_file { Some(path) => init_log_file(Path::new(&path), opts.verbosity()), -- 2.34.2