refactor: readability improvement for seek lint

This commit is contained in:
Hamir Mahal 2024-03-10 12:51:33 -07:00
parent 86717f2f0c
commit 9c51fd99aa
No known key found for this signature in database

View File

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