Add #[must_use] to remaining core functions

This commit is contained in:
John Kugelman
2021-10-14 18:54:55 -04:00
parent e1e9319d93
commit 68b0d86294
25 changed files with 52 additions and 1 deletions

View File

@@ -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