1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 04:56:12 +03:00

fix some warnings with newer rust

The warning is that some of the variants are never read.
In the case of ftwrap, they are referenced via ffi.
For the other locations, we want them for debug purposes.
This commit is contained in:
Wez Furlong 2024-04-28 19:54:54 -07:00
parent 878b86f0f0
commit a77ff4b846
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
4 changed files with 4 additions and 0 deletions

View File

@ -1294,6 +1294,7 @@ struct FreeTypeStream {
name: String,
}
#[allow(dead_code)]
enum StreamBacking {
File(BufReader<File>),
Map(Mmap),

View File

@ -5,6 +5,7 @@ use std::io::Write;
use std::os::unix::io::{AsRawFd, IntoRawFd, RawFd};
enum Fork {
#[allow(dead_code)]
Child(pid_t),
Parent(pid_t),
}

View File

@ -71,6 +71,7 @@ enum Reason {
Expired,
Dismissed,
Closed,
#[allow(dead_code)]
Unknown(u32),
}

View File

@ -626,6 +626,7 @@ impl PlayCommand {
}
}
#[allow(dead_code)]
#[derive(Debug)]
enum Summarized {
Action(Action),