main - Fixed formatting
This commit is contained in:
parent
ffb1994a59
commit
32dab4ad27
1 changed files with 1 additions and 2 deletions
|
@ -58,8 +58,7 @@ fn run_prompt() {
|
||||||
|
|
||||||
/// Load a file and run the script it contains.
|
/// Load a file and run the script it contains.
|
||||||
fn run_file(file: &str) -> ErrorHandler {
|
fn run_file(file: &str) -> ErrorHandler {
|
||||||
let contents = fs::read_to_string(file)
|
let contents = fs::read_to_string(file).unwrap_or_else(|_| panic!("Could not load {}", file));
|
||||||
.unwrap_or_else(|_| panic!("Could not load {}", file));
|
|
||||||
run(contents)
|
run(contents)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue