diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-25 00:22:25 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-25 00:22:25 -0700 |
commit | e791ad57bcf2cb4460e254b458a631b5a5a48351 (patch) | |
tree | c3f2905435aa247847ac424f31232a0e58c41db7 /src/lib.rs | |
parent | b3141319b98199d75f1317ef3754c0b6b14b1f78 (diff) | |
download | casual-e791ad57bcf2cb4460e254b458a631b5a5a48351.tar.gz casual-e791ad57bcf2cb4460e254b458a631b5a5a48351.zip |
crate-local Result alias for less verbose type signatures
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,8 @@ mod sexpr; pub use cexpr::{CExpr, CNumber}; pub use sexpr::{sexpr_parse_file, SExpr}; +pub type Result<T, E = String> = std::result::Result<T, E>; + pub fn repl(_verbose: bool) { let stdin = io::stdin(); let mut stdout = io::stdout(); |