Add #[must_use] to remaining core functions
This commit is contained in:
@@ -114,6 +114,7 @@ pub enum IntErrorKind {
|
||||
|
||||
impl ParseIntError {
|
||||
/// Outputs the detailed cause of parsing an integer failing.
|
||||
#[must_use]
|
||||
#[stable(feature = "int_error_matching", since = "1.55.0")]
|
||||
pub fn kind(&self) -> &IntErrorKind {
|
||||
&self.kind
|
||||
|
||||
Reference in New Issue
Block a user