File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ log = "^0.4"
67
67
mockito = " ^1"
68
68
murmur3 = " 0.5.2"
69
69
once_cell = " 1"
70
- opendal = " 0.47 "
70
+ opendal = " 0.48 "
71
71
ordered-float = " 4.0.0"
72
72
parquet = " 52"
73
73
pilota = " 0.11.2"
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ impl FsConfig {
45
45
///
46
46
/// fs always build from `/`
47
47
pub fn build ( & self , _: & str ) -> Result < Operator > {
48
- let m = HashMap :: from_iter ( [ ( "root" . to_string ( ) , "/" . to_string ( ) ) ] ) ;
49
- Ok ( Operator :: via_map ( Scheme :: Fs , m) ?)
48
+ Ok ( Operator :: via_iter ( Scheme :: Fs , [ (
49
+ "root" . to_string ( ) ,
50
+ "/" . to_string ( ) ,
51
+ ) ] ) ?)
50
52
}
51
53
}
Original file line number Diff line number Diff line change @@ -40,6 +40,6 @@ impl MemoryConfig {
40
40
/// Build new opendal operator from given path.
41
41
pub fn build ( & self , _: & str ) -> Result < Operator > {
42
42
let m = HashMap :: new ( ) ;
43
- Ok ( Operator :: via_map ( Scheme :: Memory , m) ?)
43
+ Ok ( Operator :: via_iter ( Scheme :: Memory , m) ?)
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -97,6 +97,6 @@ impl S3Config {
97
97
) ;
98
98
m. insert ( "region" . to_string ( ) , self . region . clone ( ) ) ;
99
99
100
- Ok ( Operator :: via_map ( Scheme :: S3 , m) ?)
100
+ Ok ( Operator :: via_iter ( Scheme :: S3 , m) ?)
101
101
}
102
102
}
Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ group_imports = "StdExternalCrate"
23
23
imports_granularity = " Module"
24
24
overflow_delimited_expr = true
25
25
trailing_comma = " Vertical"
26
- where_single_line = true
26
+ where_single_line = true
You can’t perform that action at this time.
0 commit comments