Skip to content

Conversation

@cbiffle
Copy link
Collaborator

@cbiffle cbiffle commented Apr 17, 2024

This starts with the "core" code in sys, test, and jefe, and works out from there.

Any package can opt into this at any time by adding this to its Cargo.toml:

[lints]
workspace = true

This will also cause it to pick up any future lints we decide on.

pub static CURRENT_TIME: Cell<u64> = Cell::new(0);
pub static TIMER_SETTING: Cell<(Option<u64>, u32)> = Cell::default();
pub static CURRENT_TIME: Cell<u64> = const { Cell::new(0) };
pub static TIMER_SETTING: Cell<(Option<u64>, u32)> = const { Cell::new((None, 0)) };
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(turns out we're not running clippy on multitimer, so these lines had warnings.)

@cbiffle cbiffle requested review from hawkw and mkeeter April 17, 2024 21:51
@cbiffle cbiffle force-pushed the cbiffle/deprecate-wildcard-imports branch from d5f4c0e to cf46d21 Compare April 17, 2024 21:52
@cbiffle cbiffle force-pushed the cbiffle/deprecate-wildcard-imports branch 5 times, most recently from 1a0cd30 to 7676a51 Compare April 17, 2024 22:21
This starts with the "core" code in sys, test, and jefe, and works out
from there.

Any package can opt into this at any time by adding this to its
Cargo.toml:

    [lints]
    workspace = true

This will also cause it to pick up any future lints we decide on.
@cbiffle cbiffle force-pushed the cbiffle/deprecate-wildcard-imports branch from 7676a51 to b7983ad Compare April 17, 2024 22:23
@cbiffle cbiffle enabled auto-merge (rebase) April 17, 2024 22:28
@cbiffle cbiffle merged commit 422a11b into master Apr 17, 2024
@cbiffle cbiffle deleted the cbiffle/deprecate-wildcard-imports branch April 17, 2024 22:31
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.

3 participants