mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
chore: Fix Clippy after Rust 1.77
- There are some thread_local instances that can be made constant. - An inner attribute can be moved to an outer one.
This commit is contained in:
committed by
John Nunley
parent
9067426dca
commit
3efa6d855d
@@ -117,9 +117,8 @@ impl error::Error for NotSupportedError {}
|
|||||||
impl error::Error for EventLoopError {}
|
impl error::Error for EventLoopError {}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
#[allow(clippy::redundant_clone)]
|
||||||
mod tests {
|
mod tests {
|
||||||
#![allow(clippy::redundant_clone)]
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
// Eat attributes for testing
|
// Eat attributes for testing
|
||||||
|
|||||||
@@ -1494,8 +1494,8 @@ thread_local! {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static TASKBAR_LIST: Cell<*mut ITaskbarList> = Cell::new(ptr::null_mut());
|
static TASKBAR_LIST: Cell<*mut ITaskbarList> = const { Cell::new(ptr::null_mut()) };
|
||||||
static TASKBAR_LIST2: Cell<*mut ITaskbarList2> = Cell::new(ptr::null_mut());
|
static TASKBAR_LIST2: Cell<*mut ITaskbarList2> = const { Cell::new(ptr::null_mut()) };
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn com_initialized() {
|
pub fn com_initialized() {
|
||||||
|
|||||||
Reference in New Issue
Block a user