Skip to content

Commit

Permalink
Lints for Rust 1.66
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Dec 22, 2022
1 parent 2ef301f commit 8dfc955
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion benchmarks/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![deny(
anonymous_parameters,
clippy::all,
const_err,
illegal_floating_point_literal_pattern,
late_bound_lifetime_arguments,
path_statements,
Expand Down
1 change: 0 additions & 1 deletion tests/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![deny(
anonymous_parameters,
clippy::all,
const_err,
illegal_floating_point_literal_pattern,
late_bound_lifetime_arguments,
path_statements,
Expand Down
1 change: 0 additions & 1 deletion time-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
clippy::obfuscated_if_else,
clippy::std_instead_of_core,
clippy::undocumented_unsafe_blocks,
const_err,
illegal_floating_point_literal_pattern,
late_bound_lifetime_arguments,
path_statements,
Expand Down
1 change: 0 additions & 1 deletion time-macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![deny(
anonymous_parameters,
clippy::all,
const_err,
illegal_floating_point_literal_pattern,
late_bound_lifetime_arguments,
path_statements,
Expand Down
2 changes: 1 addition & 1 deletion time/src/formatting/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub(crate) fn format_float(
None => {
let value = value.trunc() as u64;
let width = digits_before_decimal as usize;
write!(output, "{value:0>width$?}", value = value, width = width)?;
write!(output, "{value:0>width$}", value = value, width = width)?;
Ok(width)
}
}
Expand Down
1 change: 0 additions & 1 deletion time/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
clippy::obfuscated_if_else,
clippy::std_instead_of_core,
clippy::undocumented_unsafe_blocks,
const_err,
illegal_floating_point_literal_pattern,
late_bound_lifetime_arguments,
path_statements,
Expand Down

0 comments on commit 8dfc955

Please sign in to comment.