From 276bcffe6d0e4539433fd1ba105cd1b2a2fe5177 Mon Sep 17 00:00:00 2001 From: G-XD Date: Mon, 16 Oct 2023 17:38:22 +0800 Subject: [PATCH] refactor(core): use `list_with` in `Operator::list` --- core/src/types/operator/operator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/types/operator/operator.rs b/core/src/types/operator/operator.rs index 8c8539bfd6a0..00bb13e10b2e 100644 --- a/core/src/types/operator/operator.rs +++ b/core/src/types/operator/operator.rs @@ -1007,7 +1007,7 @@ impl Operator { /// # } /// ``` pub async fn list(&self, path: &str) -> Result> { - self.lister_with(path).await?.try_collect().await + self.list_with(path).await } /// List entries within a given directory with options.