From e5dbc6f534aa86c6461cc7607c13e7b69d1e3825 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Sat, 2 May 2020 15:56:33 +0200 Subject: [PATCH] Fix example for winnowing --- src/traits/resolution.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/traits/resolution.md b/src/traits/resolution.md index 7f73bfe4..236ca966 100644 --- a/src/traits/resolution.md +++ b/src/traits/resolution.md @@ -191,12 +191,16 @@ trait Get { fn get(&self) -> Self; } -impl Get for T { - fn get(&self) -> T { *self } +impl Get for T { + fn get(&self) -> T { + *self + } } -impl Get for Box { - fn get(&self) -> Box { Box::new(get_it(&**self)) } +impl Get for Box { + fn get(&self) -> Box { + Box::new(::get(self)) + } } ```