Readme and clippy cleanups
This commit is contained in:
parent
cbd52de91b
commit
8cc0202a7b
13 changed files with 159 additions and 197 deletions
|
|
@ -27,7 +27,7 @@ use std::env::{var, current_dir};
|
|||
|
||||
fn get_paths() -> Vec<String> {
|
||||
Vec::from_iter(var("PATH")
|
||||
.unwrap_or("".to_string().into())
|
||||
.unwrap_or("".to_string())
|
||||
.split(':')
|
||||
.map(String::from))
|
||||
}
|
||||
|
|
@ -69,7 +69,7 @@ pub fn run_callback(ast: &Seg, syms: &mut SymTable) -> Result<Ctr, Traceback> {
|
|||
if let Ctr::String(ref filename) = *ast.car {
|
||||
if filename.ends_with(".rls") {
|
||||
if let Some(filepath) = find_on_path(filename.to_string()) {
|
||||
return run(filepath, syms)
|
||||
run(filepath, syms)
|
||||
.and(Ok(Ctr::None))
|
||||
} else {
|
||||
let canonical_path_res = fs::canonicalize(filename);
|
||||
|
|
@ -90,7 +90,7 @@ pub fn run_callback(ast: &Seg, syms: &mut SymTable) -> Result<Ctr, Traceback> {
|
|||
).and(Ok(Ctr::None))
|
||||
}
|
||||
} else {
|
||||
return Err(start_trace(
|
||||
Err(start_trace(
|
||||
("<call script>", "binary called, unimplemented!")
|
||||
.into()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue