fix some unused/unread field warnings

This commit is contained in:
Wez Furlong committed 2021-12-10 08:18:36 -07:00
1 parent f11f2c72a3
commit f905ec8100
5 files changed
+7 -6

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ impl TmuxCommand for ListAllPanes {
fn process_result(&self, domain_id: DomainId, result: &Guarded) -> anyhow::Result<()> {
#[derive(Debug)]
#[allow(dead_code)]
struct Item {
session_id: TmuxSessionId,
window_id: TmuxWindowId,
+1
View File
@@ -75,6 +75,7 @@ struct Opt {
/// On Windows, whether to attempt to attach to the parent
/// process console to display logging output
#[structopt(long = "attach-parent-console")]
#[allow(dead_code)]
attach_parent_console: bool,
#[structopt(subcommand)]
-2
View File
@@ -144,7 +144,6 @@ pub struct QuickSelectOverlay {
#[derive(Debug)]
struct MatchResult {
range: Range<usize>,
result_index: usize,
label: String,
}
@@ -570,7 +569,6 @@ impl QuickSelectRenderable {
let result = MatchResult {
range,
result_index,
label: label.clone(),
};
+1
View File
@@ -194,6 +194,7 @@ impl EglWrapper {
fn log_config_info(&self, display: ffi::types::EGLDisplay, config: ffi::types::EGLConfig) {
#[derive(Debug)]
#[allow(dead_code)]
struct ConfigInfo {
config: ffi::types::EGLConfig,
alpha_size: Option<ffi::EGLint>,
+4 -4
View File
@@ -365,8 +365,8 @@ impl CursorInfo {
#[derive(Debug)]
struct FileHeader {
magic: u32,
header: u32,
version: u32,
_header: u32,
_version: u32,
ntoc: u32,
}
const MAGIC: u32 = 0x72756358;
@@ -389,8 +389,8 @@ impl CursorInfo {
let header = FileHeader {
magic: read_u32(&mut file)?,
header: read_u32(&mut file)?,
version: read_u32(&mut file)?,
_header: read_u32(&mut file)?,
_version: read_u32(&mut file)?,
ntoc: read_u32(&mut file)?,
};
ensure!(