Skip to content

Commit

Permalink
Rust 1.84: Correct unknown_lints notes.
Browse files Browse the repository at this point in the history
(The lint addition wasn’t delayed; it just was never that early in the
first place.)
  • Loading branch information
kpreid committed Jan 9, 2025
1 parent c3b735c commit a45efd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion all-is-cubes-desktop/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ pub fn new_progress_bar(len: u64) -> indicatif::ProgressBar {

/// [`indicatif::ProgressStyle`] for progress bars we display.
pub fn common_progress_style() -> indicatif::ProgressStyle {
#![allow(unknown_lints)] // TODO: Remove in Rust 1.84
#![allow(unknown_lints)] // TODO: Remove in Rust 1.85
#![allow(clippy::literal_string_with_formatting_args)]
indicatif::ProgressStyle::default_bar()
.template("{prefix:8} [{elapsed}] {wide_bar} {pos:>6}/{len:6} {msg:30}")
Expand Down
2 changes: 1 addition & 1 deletion all-is-cubes-desktop/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl Recorder {
pub(crate) async fn record_task(mut self, ctx: &MainTaskContext) {
let frame_range = self.options.frame_range();

#[allow(unknown_lints)] // TODO: Remove in Rust 1.84
#[allow(unknown_lints)] // TODO: Remove in Rust 1.85
#[allow(clippy::literal_string_with_formatting_args)]
let progress_style = indicatif::ProgressStyle::default_bar()
.template("{prefix:8} [{elapsed}] {wide_bar} {pos:>6}/{len:6}")
Expand Down
2 changes: 1 addition & 1 deletion all-is-cubes-desktop/src/universe_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl UniverseSource {

// TODO: figure out a cleaner way to wrangle this rx hookup
let notif_rx = Mutex::new(TryRecvKeep::Rx(notif_rx));
#[allow(unknown_lints)] // TODO: Remove in Rust 1.84
#[allow(unknown_lints)] // TODO: Remove in Rust 1.85
#[allow(clippy::literal_string_with_formatting_args)]
let universe_progress_bar = logging::new_progress_bar(100)
.with_style(
Expand Down

0 comments on commit a45efd4

Please sign in to comment.