Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Dec 8, 2024
1 parent 9af4454 commit 7718ba7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ pub struct Args {
pub stdin: bool,
/// Path to config file
pub config: Option<PathBuf>,
/// Do not read any config file
pub noconfig: bool,
/// Verbosity level for log messages
pub verbosity: LevelFilter,
/// Print arguments and exit
Expand Down Expand Up @@ -123,7 +121,6 @@ impl Args {
tabchar: args.tabchar.unwrap(),
stdin: args.stdin.unwrap(),
config: args.config,
noconfig: args.noconfig.unwrap(),
verbosity: args.verbosity.unwrap(),
arguments: args.arguments.unwrap(),
files: args.files,
Expand Down
1 change: 1 addition & 0 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fn get_cli_command() -> Command {
.author("William George Underwood, [email protected]")
.about(clap::crate_description!())
.version(clap::crate_version!())
.before_help(format!("tex-fmt {}", clap::crate_version!()))
.arg(
Arg::new("check")
.short('c')
Expand Down
2 changes: 1 addition & 1 deletion src/indent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ pub fn apply_indent(
}

// If line is correctly indented, return it directly
#[allow(clippy::cast_possible_wrap)]
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
let n_indent_chars = (indent.visual * args.tabsize as i8) as usize;
if first_non_whitespace == Some(n_indent_chars) {
return line.into();
Expand Down

0 comments on commit 7718ba7

Please sign in to comment.