Fix warnings (#2076)
* examples: Fix unused `Result` that must be used when initializing console_log * examples: Fix unused imports * Fix unread name field warning in linux x11 ime InputMethod struct * Fix unread name field warning in linux x11 Device struct * Ignore unread field warning in macos/ios MonitorHandle struct * ci: Add `--deny warnings` to `RUSTFLAGS`
This commit is contained in:
parent
20d012ae3f
commit
18a61f1058
7 changed files with 18 additions and 15 deletions
|
|
@ -168,7 +168,9 @@ impl Drop for MonitorHandle {
|
|||
|
||||
impl fmt::Debug for MonitorHandle {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
// TODO: Do this using the proper fmt API
|
||||
#[derive(Debug)]
|
||||
#[allow(dead_code)]
|
||||
struct MonitorHandle {
|
||||
name: Option<String>,
|
||||
size: PhysicalSize<u32>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue