From f4d793621cfc65b48d72b2344a6a8a8042c48ef5 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Wed, 27 Apr 2022 17:30:04 +0200 Subject: [PATCH] Remove doc warnings for now and fix others --- bffhd/config/mod.rs | 5 ----- bffhd/lib.rs | 6 +++--- bin/bffhd/main.rs | 6 ++++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/bffhd/config/mod.rs b/bffhd/config/mod.rs index 5eeb860..ac7b910 100644 --- a/bffhd/config/mod.rs +++ b/bffhd/config/mod.rs @@ -4,11 +4,6 @@ use std::collections::HashMap; use serde::{Serialize, Deserialize}; - - - - - mod dhall; pub use dhall::read_config_file as read; diff --git a/bffhd/lib.rs b/bffhd/lib.rs index 83cf2ab..e9e613a 100644 --- a/bffhd/lib.rs +++ b/bffhd/lib.rs @@ -1,7 +1,7 @@ #![warn(unused_imports, unused_import_braces)] -#![warn(missing_debug_implementations)] -#![warn(missing_docs)] -#![warn(missing_crate_level_docs)] +//#![warn(missing_debug_implementations)] +//#![warn(missing_docs)] +//#![warn(missing_crate_level_docs)] //! Diflouroborane //! diff --git a/bin/bffhd/main.rs b/bin/bffhd/main.rs index 43a2dde..4cb26ec 100644 --- a/bin/bffhd/main.rs +++ b/bin/bffhd/main.rs @@ -8,8 +8,6 @@ use std::{env, io, io::Write, path::PathBuf}; use nix::NixPath; -use diflouroborane::error::Error; - fn main() -> anyhow::Result<()> { // Argument parsing @@ -44,6 +42,10 @@ fn main() -> anyhow::Result<()> { .takes_value(true) .ignore_case(true) .possible_values(["Full", "Compact", "Pretty"])) + .arg(Arg::new("log level") + .help("Set the desired log levels.") + .long("log-level") + .takes_value(true)) .arg( Arg::new("print default") .help("Print a default config to stdout instead of running")