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:
parent
878b86f0f0
commit
a77ff4b846
@ -1294,6 +1294,7 @@ struct FreeTypeStream {
|
||||
name: String,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
enum StreamBacking {
|
||||
File(BufReader<File>),
|
||||
Map(Mmap),
|
||||
|
@ -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),
|
||||
}
|
||||
|
@ -71,6 +71,7 @@ enum Reason {
|
||||
Expired,
|
||||
Dismissed,
|
||||
Closed,
|
||||
#[allow(dead_code)]
|
||||
Unknown(u32),
|
||||
}
|
||||
|
||||
|
@ -626,6 +626,7 @@ impl PlayCommand {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
enum Summarized {
|
||||
Action(Action),
|
||||
|
Loading…
Reference in New Issue
Block a user