From 11ee29a81397d5c18eb69fd5e12f977c07e1c851 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Wed, 7 Nov 2018 08:35:28 +0000 Subject: [PATCH] Use method rather than public field --- src/libcore/num/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index a7b6d719c6a0..e297050f1f04 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -4768,8 +4768,7 @@ fn from_str_radix(src: &str, radix: u32) -> Result IntErrorKind { + self.kind + } #[unstable(feature = "int_error_internals", reason = "available through Error trait and this method should \ not be exposed publicly",