From 53787c7eba71d91811c6519a1186755787dcd204 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 27 Jun 2020 21:33:14 +0200 Subject: style --- crates/expect/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/expect/src/lib.rs b/crates/expect/src/lib.rs index 18f361ec2..aa95a88c5 100644 --- a/crates/expect/src/lib.rs +++ b/crates/expect/src/lib.rs @@ -4,10 +4,12 @@ use std::{ collections::HashMap, env, fmt, fs, ops::Range, + panic, path::{Path, PathBuf}, sync::Mutex, }; +use difference::Changeset; use once_cell::sync::Lazy; use stdx::{lines_with_ends, trim_indent}; @@ -108,7 +110,7 @@ impl Runtime { let help = if print_help { HELP } else { "" }; - let diff = difference::Changeset::new(actual, expected, "\n"); + let diff = Changeset::new(actual, expected, "\n"); println!( "\n @@ -133,7 +135,7 @@ impl Runtime { updated, expect.file, expect.line, expect.column, help, expected, actual, diff ); // Use resume_unwind instead of panic!() to prevent a backtrace, which is unnecessary noise. - std::panic::resume_unwind(Box::new(())); + panic::resume_unwind(Box::new(())); } } -- cgit v1.2.3