mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
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:
commit
02156dcf09
@ -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?
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user