diff --git a/src/config/bridge_backend.rs b/src/config/bridge_backend.rs index 631672e..eb4ea3b 100644 --- a/src/config/bridge_backend.rs +++ b/src/config/bridge_backend.rs @@ -190,4 +190,15 @@ impl BridgeBackendConfig { env } + + #[allow(unused)] + pub fn convert_hashmap_to_vec(input: &HashMap) -> Vec<(&str, &str)> { + let mut result: Vec<(&str, &str)> = Vec::new(); + + for val in input { + result.push((val.0.as_str(), val.1.as_str())); + } + + result + } } diff --git a/src/node.rs b/src/node.rs index ed63019..33f9b2f 100644 --- a/src/node.rs +++ b/src/node.rs @@ -43,7 +43,7 @@ pub trait Config: Clone { fn dir(&self) -> &PathBuf; fn rpc_bind_host(&self) -> &str; fn rpc_bind_port(&self) -> u16; - fn env(&self) -> Vec<(&'static str, &'static str)>; + fn env(&self) -> Vec<(&'static str, &'static str)>; // TODO: Isn't HashMap more appropriate fn node_config(&self) -> Option<&Self::NodeConfig>; fn node_kind() -> NodeKind; fn rollup_config(&self) -> &RollupConfig;