From 6687760b4ede860066c0a586424c7e9a4c08b654 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 28 Jan 2021 16:12:16 +0000 Subject: [PATCH] wdt: wip new pos handling trait Signed-off-by: Ian Jackson --- wdriver.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wdriver.rs b/wdriver.rs index c335c0cc..cf032a18 100644 --- a/wdriver.rs +++ b/wdriver.rs @@ -1107,6 +1107,11 @@ trait IntoInWindow { fn w_into<'g>(self, w: &'g WindowGuard) -> Result; } +impl IntoInWindow for T { + #[throws(AE)] + fn w_into<'g>(self, _w: &'g WindowGuard) -> T { self } +} + impl IntoInWindow for Pos { #[throws(AE)] fn w_into<'g>(self, w: &'g WindowGuard) -> WebPos { -- 2.30.2