Disable unfinished error_limit logic to prepare for release

pull/481/head
Wilfred Hughes 2023-02-02 22:11:31 +07:00
parent bf26ec890f
commit b78067a96b
1 changed files with 8 additions and 8 deletions

@ -59,7 +59,7 @@ impl Default for DisplayOptions {
pub struct DiffOptions { pub struct DiffOptions {
pub graph_limit: usize, pub graph_limit: usize,
pub byte_limit: usize, pub byte_limit: usize,
pub error_limit: usize, // pub error_limit: usize,
pub check_only: bool, pub check_only: bool,
pub ignore_comments: bool, pub ignore_comments: bool,
} }
@ -69,7 +69,7 @@ impl Default for DiffOptions {
Self { Self {
graph_limit: DEFAULT_GRAPH_LIMIT, graph_limit: DEFAULT_GRAPH_LIMIT,
byte_limit: DEFAULT_BYTE_LIMIT, byte_limit: DEFAULT_BYTE_LIMIT,
error_limit: 0, // error_limit: 0,
check_only: false, check_only: false,
ignore_comments: false, ignore_comments: false,
} }
@ -490,11 +490,11 @@ pub fn parse_args() -> Mode {
.parse::<usize>() .parse::<usize>()
.expect("Value already validated by clap"); .expect("Value already validated by clap");
let error_limit = matches // let error_limit = matches
.value_of("error-limit") // .value_of("error-limit")
.expect("Always present as we've given clap a default") // .expect("Always present as we've given clap a default")
.parse::<usize>() // .parse::<usize>()
.expect("Value already validated by clap"); // .expect("Value already validated by clap");
let tab_width = matches let tab_width = matches
.value_of("tab-width") .value_of("tab-width")
@ -533,7 +533,7 @@ pub fn parse_args() -> Mode {
let diff_options = DiffOptions { let diff_options = DiffOptions {
graph_limit, graph_limit,
byte_limit, byte_limit,
error_limit, // error_limit,
check_only, check_only,
ignore_comments, ignore_comments,
}; };