~goorzhel/rstdm

d822cd6f6b83262c129d34f6543994b6bc2b763b — Antonio Gurgel a month ago a08914c
Add missing comments
2 files changed, 2 insertions(+), 0 deletions(-)

M src/auth.rs
M src/cli.rs
M src/auth.rs => src/auth.rs +1 -0
@@ 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.

M src/cli.rs => src/cli.rs +1 -0
@@ 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()),