chiark / gitweb /
wdriver: Add an allow for a field used only for its Drop behaviour
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 11:46:38 +0000 (11:46 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 11:46:38 +0000 (11:46 +0000)
wdriver/wdriver.rs

index ec07a46f2b1a60cafce9d485948653e88b1404c6..f0d190a7246a38741f4c5ec4fbc9d3eeb4301274 100644 (file)
@@ -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<JsLogfile>, // see Drop impl
 }
 deref_to_field_mut!{Setup, SetupCore, core}