-
Notifications
You must be signed in to change notification settings - Fork 139
refactor: enable unwrap_used
clippy correctness lint
#965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
const WIDTH: NonZeroU16 = NonZeroU16::new(2048).expect("value is guaranteed to be non-zero"); | ||
const HEIGHT: NonZeroU16 = NonZeroU16::new(2048).expect("value is guaranteed to be non-zero"); | ||
// QUESTION: It looks like we have a bug here, don't we? The stride value should be 2048 * 4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @elmarco! Could you help with clarifying this one? It seems it has been modified by you.
Coverage Report 🤖 ⚙️Past: New: Diff: -0.04% [this comment will be updated automatically] |
facb96d
to
8a353a9
Compare
Out of blue, cargo xtask check lints started to report that there are still warnings. Let me fix them as well. EDIT: |
523ea79
to
dc47d82
Compare
Hi @CBenoit! This one is ready to be merged. Is there anything left for me to do? |
/// `tokio::select!` statement. If some other branch completes first, it | ||
/// MUST be guaranteed that no data is lost. | ||
async fn next_update(&mut self) -> Option<DisplayUpdate>; | ||
async fn next_update(&mut self) -> Result<Option<DisplayUpdate>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: This is a breaking change, this should typically be treated with care (and should surface in the changelog). I’ll handle that manually on my hand before merging the release PR this time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
#964 has to be merged first