Skip to content

Commit a7b0f36

Browse files
authored
style: fix cargo clippy (#630)
1 parent 7f00295 commit a7b0f36

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

oma-fetch/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{borrow::Cow, cmp::Ordering, fmt::Debug, path::PathBuf, time::Duration};
22

3-
use bon::{Builder, builder};
3+
use bon::Builder;
44
use checksum::Checksum;
55
use download::{BuilderError, SingleDownloader, SuccessSummary};
66
use futures::StreamExt;

oma-pm-operation-type/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt::Display;
22

3-
use bon::{Builder, builder};
3+
use bon::Builder;
44
use num_enum::{FromPrimitive, IntoPrimitive};
55
use oma_utils::human_bytes::HumanBytes;
66
use serde::{Deserialize, Serialize};

oma-pm/src/apt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77

88
use ahash::HashSet;
99
use apt_auth_config::AuthConfig;
10-
use bon::{Builder, builder};
10+
use bon::Builder;
1111
pub use oma_apt::cache::Upgrade;
1212
use once_cell::sync::OnceCell;
1313
use tokio::runtime::Runtime;
@@ -27,7 +27,7 @@ use oma_fetch::{Event, Summary, checksum::ChecksumError, reqwest::Client};
2727
use oma_utils::{dpkg::DpkgError, human_bytes::HumanBytes, is_termux};
2828

2929
pub use oma_apt::config::Config as AptConfig;
30-
use tracing::{debug, error};
30+
use tracing::debug;
3131

3232
#[cfg(feature = "aosc")]
3333
use tracing::warn;

oma-pm/src/matches.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{borrow::Cow, cmp::Ordering, path::Path};
22

3-
use bon::{Builder, builder};
3+
use bon::Builder;
44
use cxx::UniquePtr;
55
use glob_match::glob_match;
66
use oma_apt::{

oma-refresh/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
use ahash::{AHashMap, HashSet};
88
use aho_corasick::BuildError;
99
use apt_auth_config::AuthConfig;
10-
use bon::{Builder, builder};
10+
use bon::Builder;
1111
use chrono::Utc;
1212
use nix::{
1313
errno::Errno,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mod utils;
2323

2424
use args::{CliExecuter, OhManagerAilurus};
2525
use clap::builder::FalseyValueParser;
26-
use clap::{ArgAction, ArgMatches, Args, ColorChoice, CommandFactory, FromArgMatches, arg};
26+
use clap::{ArgAction, ArgMatches, Args, ColorChoice, CommandFactory, FromArgMatches};
2727
use clap_complete::CompleteEnv;
2828
use clap_i18n_richformatter::CommandI18nExt;
2929
use error::OutputError;

src/subcommand/utils.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ use crate::utils::get_lists_dir;
4242
use ahash::HashSet;
4343
use apt_auth_config::AuthConfig;
4444
use bon::Builder;
45-
use bon::builder;
4645
use chrono::Local;
4746
use dialoguer::Confirm;
4847
use dialoguer::console;

0 commit comments

Comments
 (0)