diff options
| author | Ethan Brierley <ethanboxx@gmail.com> | 2018-11-25 19:31:35 +0000 |
|---|---|---|
| committer | Ethan Brierley <ethanboxx@gmail.com> | 2018-11-25 19:31:35 +0000 |
| commit | 07b97a486f3580f9b50404a4199271f70b4a63fb (patch) | |
| tree | 7686eff81e59912540725235c93ea2be3b9a25c1 | |
| parent | 51e1f5560de3f9c8ae673c8014a5ed9547c1ce86 (diff) | |
| download | rust-07b97a486f3580f9b50404a4199271f70b4a63fb.tar.gz rust-07b97a486f3580f9b50404a4199271f70b4a63fb.zip | |
Use a reference rather than take ownership
| -rw-r--r-- | src/libcore/num/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 71617347e4c..56ccea19b8a 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -4800,7 +4800,7 @@ impl ParseIntError { reason = "it can be useful to match errors when making error messages \ for integer parsing", issue = "22639")] - pub fn kind(self) -> IntErrorKind { + pub fn kind(&self) -> &IntErrorKind { self.kind } #[unstable(feature = "int_error_internals", |
