From 75750ba6835ae8ac3a97c24ca7ff5ebc1500f36d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 27 Feb 2021 11:27:52 +0200 Subject: style(tazjin/rlox): Set max_width=80 Change-Id: Ib64831c0b97c94fdfbdbae64f4dfccc86879ef73 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2554 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/rlox/src/main.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'users/tazjin/rlox/src/main.rs') diff --git a/users/tazjin/rlox/src/main.rs b/users/tazjin/rlox/src/main.rs index 3a956833c15d..2b4e365d4125 100644 --- a/users/tazjin/rlox/src/main.rs +++ b/users/tazjin/rlox/src/main.rs @@ -15,7 +15,10 @@ pub trait Lox { type Error: std::fmt::Display; fn create() -> Self; - fn interpret(&mut self, source: String) -> Result>; + fn interpret( + &mut self, + source: String, + ) -> Result>; } fn main() { @@ -26,7 +29,9 @@ fn main() { } match env::var("LOX_INTERPRETER").as_ref().map(String::as_str) { - Ok("treewalk") => pick::(args.nth(1)), + Ok("treewalk") => { + pick::(args.nth(1)) + } _ => pick::(args.nth(1)), } } @@ -41,7 +46,8 @@ fn pick(file_arg: Option) { // Run Lox code from a file and print results to stdout fn run_file(file: &str) { - let contents = fs::read_to_string(file).expect("failed to read the input file"); + let contents = + fs::read_to_string(file).expect("failed to read the input file"); let mut lox = I::create(); run(&mut lox, contents); } -- cgit 1.4.1