This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch implement-list-metakey
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/implement-list-metakey by this
push:
new 67850ec8a Fix doc test
67850ec8a is described below
commit 67850ec8ad6548112b39cd73c9a03ab48fea802c
Author: Xuanwo <[email protected]>
AuthorDate: Mon Aug 7 16:43:41 2023 +0800
Fix doc test
Signed-off-by: Xuanwo <[email protected]>
---
core/src/types/operator/blocking_operator.rs | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/core/src/types/operator/blocking_operator.rs
b/core/src/types/operator/blocking_operator.rs
index 90cf3dee0..7b2b9f120 100644
--- a/core/src/types/operator/blocking_operator.rs
+++ b/core/src/types/operator/blocking_operator.rs
@@ -730,11 +730,8 @@ impl BlockingOperator {
/// # use opendal::EntryMode;
/// # fn test(op: BlockingOperator) -> Result<()> {
/// let mut ds = op.list("path/to/dir/")?;
- /// while let Some(mut de) = ds.next() {
- /// let meta = op.metadata(&de?, {
- /// use opendal::Metakey::*;
- /// Mode
- /// })?;
+ /// while let Some(mut entry) = ds.next() {
+ /// let meta = entry.metadata();
/// match meta.mode() {
/// EntryMode::FILE => {
/// println!("Handling file")
@@ -785,11 +782,8 @@ impl BlockingOperator {
/// # use opendal::EntryMode;
/// # fn test(op: BlockingOperator) -> Result<()> {
/// let mut ds = op.list("path/to/dir/")?;
- /// while let Some(mut de) = ds.next() {
- /// let meta = op.metadata(&de?, {
- /// use opendal::Metakey::*;
- /// Mode
- /// })?;
+ /// while let Some(mut entry) = ds.next() {
+ /// let meta = entry.metadata();
/// match meta.mode() {
/// EntryMode::FILE => {
/// println!("Handling file")