Skip to content

Use try_update instead of the deprecated fetch_update - #3

Merged
Divhanthelion merged 1 commit into
mainfrom
fix/try-update
Oct 3, 2026
Merged

Divhanthelion merged 1 commit into
mainfrom
fix/try-update

Conversation

@Divhanthelion

Copy link
Copy Markdown
Owner

Fixes the failing lint job. Rust 1.99 deprecates AtomicU32::fetch_update as a rename of try_update, and cargo clippy -- -D warnings turns the deprecation into an error.

try_update has been stable since 1.95.0, the crate's rust-version, so the 1.95 test job keeps working. The lesson text now says try_update and mentions it was called fetch_update before 1.95.

Checked locally on 1.99: cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test (28 + 7 + 2).

🤖 Generated with Claude Code

Rust 1.99 deprecates fetch_update as a rename of try_update, which is
stable since 1.95, this course's rust-version. Clippy's -D warnings
turned the deprecation into the lint failure. The lesson text mentions
the old name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Divhanthelion
Divhanthelion merged commit dc4db01 into main Oct 3, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant