From: Ian Jackson Date: Thu, 28 Jan 2021 16:12:16 +0000 (+0000) Subject: wdt: wip new pos handling trait X-Git-Tag: otter-0.4.0~662 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6687760b4ede860066c0a586424c7e9a4c08b654;p=otter.git wdt: wip new pos handling trait Signed-off-by: Ian Jackson --- 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 {