Skip to content

Commit 07b97a4

Browse files
committed
Use a reference rather than take ownership
1 parent 51e1f55 commit 07b97a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4800,7 +4800,7 @@ impl ParseIntError {
48004800
reason = "it can be useful to match errors when making error messages \
48014801
for integer parsing",
48024802
issue = "22639")]
4803-
pub fn kind(self) -> IntErrorKind {
4803+
pub fn kind(&self) -> &IntErrorKind {
48044804
self.kind
48054805
}
48064806
#[unstable(feature = "int_error_internals",

0 commit comments

Comments
 (0)