Auto merge of #12458 - hamirmahal:refactor/readability-improvement, r=dswij

[`seek_from_current`]: readability improvements

fixes #12457.

---

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: [`seek_from_current`]: readability improvements
This commit is contained in:
bors 2024-03-11 07:00:36 +00:00
commit 02156dcf09

View file

@ -3183,8 +3183,8 @@ declare_clippy_lint! {
declare_clippy_lint! {
/// ### What it does
///
/// Checks an argument of `seek` method of `Seek` trait
/// and if it start seek from `SeekFrom::Current(0)`, suggests `stream_position` instead.
/// Checks if the `seek` method of the `Seek` trait is called with `SeekFrom::Current(0)`,
/// and if it is, suggests using `stream_position` instead.
///
/// ### Why is this bad?
///