chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47a8426
)
wdt: wip new pos handling trait
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 28 Jan 2021 16:12:16 +0000
(16:12 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 28 Jan 2021 17:58:12 +0000
(17:58 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver.rs
patch
|
blob
|
history
diff --git
a/wdriver.rs
b/wdriver.rs
index c335c0cc02f302fb7b7b93413d04330ad1365c23..cf032a1834befd4adb8a646e377c76b14b0ab8b9 100644
(file)
--- a/
wdriver.rs
+++ b/
wdriver.rs
@@
-1107,6
+1107,11
@@
trait IntoInWindow<T> {
fn w_into<'g>(self, w: &'g WindowGuard) -> Result<T, AE>;
}
+impl<T> IntoInWindow<T> for T {
+ #[throws(AE)]
+ fn w_into<'g>(self, _w: &'g WindowGuard) -> T { self }
+}
+
impl IntoInWindow<WebPos> for Pos {
#[throws(AE)]
fn w_into<'g>(self, w: &'g WindowGuard) -> WebPos {