From: Ian Jackson Date: Sun, 6 Mar 2022 11:46:38 +0000 (+0000) Subject: wdriver: Add an allow for a field used only for its Drop behaviour X-Git-Tag: otter-1.0.0~158 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4b38993cbc842a5fc44dce5f14dcdb4bcace239c;p=otter.git wdriver: Add an allow for a field used only for its Drop behaviour --- diff --git a/wdriver/wdriver.rs b/wdriver/wdriver.rs index ec07a46f..f0d190a7 100644 --- a/wdriver/wdriver.rs +++ b/wdriver/wdriver.rs @@ -50,7 +50,7 @@ pub struct Setup { driver: T4d, current_window: WindowState, screenshot_count: ScreenShotCount, - final_hook: FinalInfoCollection, + #[allow(dead_code)] /* here for Drop impl */ final_hook: FinalInfoCollection, windows_squirreled: Vec, // see Drop impl } deref_to_field_mut!{Setup, SetupCore, core}