From 7785bf4559db6ccbdfc337bc831cf992ff498116 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 18 Mar 2021 21:09:58 +0000 Subject: [PATCH] xdata: Remove a now-redundant Default bound We were trying to get rid of these, but missed this one. Signed-off-by: Ian Jackson --- src/gamestate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamestate.rs b/src/gamestate.rs index 22ea1df5..ffdcf01b 100644 --- a/src/gamestate.rs +++ b/src/gamestate.rs @@ -281,7 +281,7 @@ impl GPiece { #[throws(IE)] pub fn xdata_mut< - T: PieceXData + Default, + T: PieceXData, D: FnOnce() -> T, >(&mut self, def: D) -> &mut T { self.xdata.get_mut(def)? -- 2.30.2