From 585e11549e8f83488afbb3ebc5e33022b1fa7f16 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Fri, 6 Apr 2018 09:48:17 -0400 Subject: [PATCH] Default RHS to Self for Div and Shl This fixes a consistency issue with the other operator traits. --- src/dox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dox.rs b/src/dox.rs index 1c93efe7..d3f9ccc3 100644 --- a/src/dox.rs +++ b/src/dox.rs @@ -68,13 +68,13 @@ mod imp { } #[lang = "div"] - pub trait Div { + pub trait Div { type Output; fn div(self, rhs: RHS) -> Self::Output; } #[lang = "shl"] - pub trait Shl { + pub trait Shl { type Output; fn shl(self, rhs: RHS) -> Self::Output; }