mirror of
https://github.com/BurntSushi/jiff.git
synced 2025-12-23 08:47:45 +00:00
This was bad timing. The lang team just stabilized (in nightly) a new deny-by-default lint, named `ambiguous_negative_literals`, which triggers an error for things like `-1.hour()`. While such things can be confusingly ambiguous in some cases, in Jiff, `-1.hour()`, `(-1).hour()` and `-(1.hour())` are all, very intentionally, precisely equivalent. For now we just `allow` the lint. If the lint stays, we'll likely want to recommend allowing it in the Jiff docs. See: https://github.com/rust-lang/rust/pull/121364
4 lines
123 B
Rust
4 lines
123 B
Rust
// See: https://github.com/rust-lang/rust/pull/121364
|
|
#![allow(unknown_lints, ambiguous_negative_literals)]
|
|
|
|
mod tc39_262;
|