Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mydayyy committed Sep 17, 2024
1 parent 8aed1a4 commit 6c7ea74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/logger.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use log::{Record, Level, Metadata};
use log::{SetLoggerError, LevelFilter};
use log::{Metadata, Record};
use log::SetLoggerError;

pub(crate) struct SimpleLogger(());
const LOGGER: &'static SimpleLogger = &SimpleLogger(());
Expand All @@ -16,7 +16,7 @@ impl SimpleLogger {
}

impl log::Log for SimpleLogger {
fn enabled(&self, metadata: &Metadata) -> bool {
fn enabled(&self, _metadata: &Metadata) -> bool {
true
}

Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::ffi::OsString;
use clap::Parser;
use data_url::DataUrl;
use pbcli::api::API;
Expand All @@ -7,9 +6,9 @@ use pbcli::opts::Opts;
use pbcli::privatebin::{DecryptedComment, DecryptedCommentsMap, DecryptedPaste};
use pbcli::util::check_filesize;
use serde_json::Value;
use std::ffi::OsString;
use std::io::IsTerminal;
use std::io::{Read, Write};
use log::LevelFilter;

mod logger;

Expand Down

0 comments on commit 6c7ea74

Please sign in to comment.