]> git.lizzy.rs Git - rust.git/commitdiff
fix missing borrow
authorEthan Brierley <ethanboxx@gmail.com>
Sun, 25 Nov 2018 19:44:09 +0000 (19:44 +0000)
committerEthan Brierley <ethanboxx@gmail.com>
Sun, 25 Nov 2018 19:44:09 +0000 (19:44 +0000)
src/libcore/num/mod.rs

index 56ccea19b8a3fc9a9facedb835a846cb6baa2d85..eb8a51b18a5d25c21f4193f4cd5d4fbda12811e7 100644 (file)
@@ -4801,7 +4801,7 @@ impl ParseIntError {
                          for integer parsing",
                issue = "22639")]
     pub fn kind(&self) -> &IntErrorKind {
-        self.kind
+        &self.kind
     }
     #[unstable(feature = "int_error_internals",
                reason = "available through Error trait and this method should \