@@ -1,3 +1,5 @@
|
|||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
pub mod addr;
|
pub mod addr;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod flags;
|
pub mod flags;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![allow(dead_code)]
|
|
||||||
|
|
||||||
mod common;
|
mod common;
|
||||||
|
|
||||||
extern crate libvm as vm;
|
extern crate libvm as vm;
|
||||||
@@ -89,6 +87,7 @@ struct Options {
|
|||||||
|
|
||||||
type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|
type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|
||||||
|
|
||||||
|
/*
|
||||||
fn get_reader(path: impl AsRef<Path>) -> Result<Box<dyn Read>> {
|
fn get_reader(path: impl AsRef<Path>) -> Result<Box<dyn Read>> {
|
||||||
if let Some("-") = path.as_ref().to_str() {
|
if let Some("-") = path.as_ref().to_str() {
|
||||||
Ok(Box::new(stdin()))
|
Ok(Box::new(stdin()))
|
||||||
@@ -96,6 +95,7 @@ fn get_reader(path: impl AsRef<Path>) -> Result<Box<dyn Read>> {
|
|||||||
Ok(Box::new(fs::File::open(path.as_ref())?))
|
Ok(Box::new(fs::File::open(path.as_ref())?))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
fn get_writer(path: impl AsRef<Path>) -> Result<Box<dyn Write>> {
|
fn get_writer(path: impl AsRef<Path>) -> Result<Box<dyn Write>> {
|
||||||
if let Some("-") = path.as_ref().to_str() {
|
if let Some("-") = path.as_ref().to_str() {
|
||||||
|
|||||||
Reference in New Issue
Block a user