Skip to content

Commit

Permalink
Remove useless deprecated annotation on trait impl
Browse files Browse the repository at this point in the history
Unfortunately, deprecation annotations on trait `ìmpl` blocks are
ignored by the compiler (see
<rust-lang/rust#39935>).
  • Loading branch information
rotty committed Jan 9, 2021
1 parent e9057a8 commit bd5ebcb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lexpr/src/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,10 +1354,9 @@ where
Ok(value)
}

#[deprecated(
since = "0.2.5",
note = "Please use the `value_iter` method to obtain an iterator"
)]
/// This implementation is deprecated in favor of `value_iter` since version
/// "0.2.5", but cannot be marked as such due to
/// <https://github.com/rust-lang/rust/issues/39935>.
impl<'de, R: Read<'de>> Iterator for Parser<R> {
type Item = Result<Value>;

Expand Down

0 comments on commit bd5ebcb

Please sign in to comment.