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 committed 2024-04-28 19:54:54 -07:00
1 parent 878b86f0f0
commit a77ff4b846
4 files changed
+4

No files matched your search

+1
View File
@@ -1294,6 +1294,7 @@ struct FreeTypeStream {
name: String,
}
#[allow(dead_code)]
enum StreamBacking {
File(BufReader<File>),
Map(Mmap),
+1
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),
}
+1
View File
@@ -71,6 +71,7 @@ enum Reason {
Expired,
Dismissed,
Closed,
#[allow(dead_code)]
Unknown(u32),
}
+1
View File
@@ -626,6 +626,7 @@ impl PlayCommand {
}
}
#[allow(dead_code)]
#[derive(Debug)]
enum Summarized {
Action(Action),