Use a reference rather than take ownership
This commit is contained in:
parent
51e1f5560d
commit
07b97a486f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue