Use a reference rather than take ownership
This commit is contained in:
parent
51e1f5560d
commit
07b97a486f
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user