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 2025/04/03 11:35:22 UTC

(opendal) branch fix-clippy created (now 73faf3cc6)

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

xuanwo pushed a change to branch fix-clippy
in repository https://gitbox.apache.org/repos/asf/opendal.git


      at 73faf3cc6 chore: Fix clippy for rust 1.86

This branch includes the following new commits:

     new 73faf3cc6 chore: Fix clippy for rust 1.86

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(opendal) 01/01: chore: Fix clippy for rust 1.86

Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 73faf3cc6a300c9c8cc14ee27d2176487fa74de8
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Thu Apr 3 19:35:04 2025 +0800

    chore: Fix clippy for rust 1.86
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 bin/ofs/tests/file.rs               | 2 +-
 core/src/layers/capability_check.rs | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/ofs/tests/file.rs b/bin/ofs/tests/file.rs
index c92f02227..67918ae5c 100644
--- a/bin/ofs/tests/file.rs
+++ b/bin/ofs/tests/file.rs
@@ -113,7 +113,7 @@ fn test_file_truncate(ctx: &mut OfsTestContext) {
         .truncate(true)
         .open(&path)
         .unwrap();
-    file.write_all(TEST_TEXT[..TEST_TEXT.len() / 2].as_bytes())
+    file.write_all(&TEST_TEXT.as_bytes()[..TEST_TEXT.len() / 2])
         .unwrap();
     drop(file);
 
diff --git a/core/src/layers/capability_check.rs b/core/src/layers/capability_check.rs
index a380eb844..2c9ce5849 100644
--- a/core/src/layers/capability_check.rs
+++ b/core/src/layers/capability_check.rs
@@ -30,11 +30,11 @@ use std::sync::Arc;
 ///
 /// There are two main differences between this checker with the `CorrectnessChecker`:
 /// 1. This checker provides additional checks for capabilities like write_with_content_type and
-///     list_with_versions, among others. These capabilities do not affect data integrity, even if
-///     the underlying storage services do not support them.
+///    list_with_versions, among others. These capabilities do not affect data integrity, even if
+///    the underlying storage services do not support them.
 ///
 /// 2. OpenDAL doesn't apply this checker by default. Users can enable this layer if they want to
-///     enforce stricter requirements.
+///    enforce stricter requirements.
 ///
 /// # examples
 ///