mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
Removed unused code on wasitests
This commit is contained in:
parent
7b41c2b843
commit
37afcd33df
@ -236,13 +236,6 @@ pub struct WasiOptions {
|
|||||||
pub dir: Vec<String>,
|
pub dir: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl WasiOptions {
|
|
||||||
/// Constructs WasiOptions given a json string
|
|
||||||
pub fn from_str(buffer: &str) -> Result<Self, String> {
|
|
||||||
serde_json::from_str(buffer).map_err(|e| format!("Can't get options from bufer"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Pulls args to the program out of a comment at the top of the file starting with "// WasiOptions:"
|
/// Pulls args to the program out of a comment at the top of the file starting with "// WasiOptions:"
|
||||||
fn extract_args_from_source_file(source_code: &str) -> Option<WasiOptions> {
|
fn extract_args_from_source_file(source_code: &str) -> Option<WasiOptions> {
|
||||||
if source_code.starts_with("// WASI:") {
|
if source_code.starts_with("// WASI:") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user