Skip to content

Commit

Permalink
suppress progressbar dead code/unused variable warning when compiling…
Browse files Browse the repository at this point in the history
… qsvlite

which disables progress bars
  • Loading branch information
jqnatividad committed Apr 2, 2024
1 parent 752607e commit 91e5831
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/cmd/count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ use serde::Deserialize;

use crate::{config::Config, util, CliResult};

#[allow(dead_code)]
#[derive(Deserialize)]
struct Args {
arg_input: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions src/cmd/datefmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ use crate::{
CliResult,
};

#[allow(dead_code)]
#[derive(Deserialize)]
struct Args {
arg_column: SelectColumns,
Expand Down
1 change: 1 addition & 0 deletions src/cmd/luau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ use crate::{
util, CliError, CliResult,
};

#[allow(dead_code)]
#[derive(Deserialize)]
struct Args {
cmd_map: bool,
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/sniff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ use crate::{
util::format_systemtime,
CliResult,
};

#[allow(dead_code)]
#[derive(Deserialize)]
struct Args {
arg_input: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ pub fn decompress_snappy_file(
pub async fn download_file(
url: &str,
path: PathBuf,
show_progress: bool,
#[allow(unused_variables)] show_progress: bool,
custom_user_agent: Option<String>,
download_timeout: Option<u16>,
sample_size: Option<u64>,
Expand Down

0 comments on commit 91e5831

Please sign in to comment.