Add #[must_use] to remaining core functions
This commit is contained in:
parent
e1e9319d93
commit
68b0d86294
25 changed files with 52 additions and 1 deletions
|
@ -18,6 +18,7 @@ use crate::str::from_utf8_unchecked;
|
|||
///
|
||||
/// This `struct` is created by the [`escape_default`] function. See its
|
||||
/// documentation for more.
|
||||
#[must_use = "iterators are lazy and do nothing unless consumed"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[derive(Clone)]
|
||||
pub struct EscapeDefault {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue