You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/03/11 07:55:06 UTC

(opendal) 20/24: clippy passed

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch read-async-trait
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 108fcbe20f0c519f812c8ce99806b9dd55923a04
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Mar 11 15:39:53 2024 +0800

    clippy passed
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 core/fuzz/fuzz_reader.rs | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/core/fuzz/fuzz_reader.rs b/core/fuzz/fuzz_reader.rs
index 2d9c0efa84..c18a348cef 100644
--- a/core/fuzz/fuzz_reader.rs
+++ b/core/fuzz/fuzz_reader.rs
@@ -96,27 +96,25 @@ impl Arbitrary<'_> for FuzzInput {
         let mut actions = vec![];
 
         for _ in 0..count {
-            let action = match u.int_in_range(0..=4)? {
+            let action = match u.int_in_range(0..=3)? {
                 // Read
                 0 => {
                     let size = u.int_in_range(0..=total_size * 2)?;
                     ReadAction::Read(size)
                 }
-                // Next
-                1 => ReadAction::Next,
                 // Seek Start
-                2 => {
+                1 => {
                     // NOTE: seek out of the end of file is valid.
                     let offset = u.int_in_range(0..=total_size * 2)?;
                     ReadAction::Seek(SeekFrom::Start(offset as u64))
                 }
                 // Seek Current
-                3 => {
+                2 => {
                     let offset = u.int_in_range(-(total_size as i64)..=(total_size as i64))?;
                     ReadAction::Seek(SeekFrom::Current(offset))
                 }
                 // Seek End
-                4 => {
+                3 => {
                     let offset = u.int_in_range(-(total_size as i64)..=(total_size as i64))?;
                     ReadAction::Seek(SeekFrom::End(offset))
                 }