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:
4 files changed
+4
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user