File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -190,4 +190,15 @@ impl BridgeBackendConfig {
190
190
191
191
env
192
192
}
193
+
194
+ #[ allow( unused) ]
195
+ pub fn convert_hashmap_to_vec ( input : & HashMap < String , String > ) -> Vec < ( & str , & str ) > {
196
+ let mut result: Vec < ( & str , & str ) > = Vec :: new ( ) ;
197
+
198
+ for val in input {
199
+ result. push ( ( val. 0 . as_str ( ) , val. 1 . as_str ( ) ) ) ;
200
+ }
201
+
202
+ result
203
+ }
193
204
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub trait Config: Clone {
43
43
fn dir ( & self ) -> & PathBuf ;
44
44
fn rpc_bind_host ( & self ) -> & str ;
45
45
fn rpc_bind_port ( & self ) -> u16 ;
46
- fn env ( & self ) -> Vec < ( & ' static str , & ' static str ) > ;
46
+ fn env ( & self ) -> Vec < ( & ' static str , & ' static str ) > ; // TODO: Isn't HashMap<String, String> more appropriate
47
47
fn node_config ( & self ) -> Option < & Self :: NodeConfig > ;
48
48
fn node_kind ( ) -> NodeKind ;
49
49
fn rollup_config ( & self ) -> & RollupConfig ;
You can’t perform that action at this time.
0 commit comments