From 72ded36093bbab8b591bcf1bfa0e32219d6d1591 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 9 Jun 2020 11:12:01 -0700 Subject: [PATCH] More fully qualified paths --- cursive-core/src/view/view_wrapper.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cursive-core/src/view/view_wrapper.rs b/cursive-core/src/view/view_wrapper.rs index 37dd9d4..d7ddf55 100644 --- a/cursive-core/src/view/view_wrapper.rs +++ b/cursive-core/src/view/view_wrapper.rs @@ -169,25 +169,25 @@ macro_rules! wrap_impl { (self.$v:ident: $t:ty) => { type V = $t; - fn with_view(&self, f: F) -> std::option::Option + fn with_view(&self, f: F) -> ::std::option::Option where - F: std::ops::FnOnce(&Self::V) -> R, + F: ::std::ops::FnOnce(&Self::V) -> R, { - std::option::Option::Some(f(&self.$v)) + ::std::option::Option::Some(f(&self.$v)) } - fn with_view_mut(&mut self, f: F) -> std::option::Option + fn with_view_mut(&mut self, f: F) -> ::std::option::Option where - F: std::ops::FnOnce(&mut Self::V) -> R, + F: ::std::ops::FnOnce(&mut Self::V) -> R, { - std::option::Option::Some(f(&mut self.$v)) + ::std::option::Option::Some(f(&mut self.$v)) } - fn into_inner(self) -> std::result::Result + fn into_inner(self) -> ::std::result::Result where - Self::V: Sized, + Self::V: ::std::marker::Sized, { - std::result::Result::Ok(self.$v) + ::std::result::Result::Ok(self.$v) } }; }