Skip to content

Commit e82086d

Browse files
committed
fmt
1 parent f0bb335 commit e82086d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ pub extern crate simplicity;
3131
pub use simplicity::elements;
3232

3333
use crate::debug::DebugSymbols;
34+
pub use crate::error::get_line_col;
3435
use crate::error::{ErrorCollector, WithFile, WithFilePath};
3536
use crate::parse::ParseFromStrWithErrors;
3637
pub use crate::types::ResolvedType;
3738
pub use crate::value::Value;
38-
pub use crate::error::get_line_col;
3939
pub use crate::warning::{WarnCategory, Warning};
4040
pub use crate::witness::{Arguments, Parameters, WitnessTypes, WitnessValues};
4141

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
202202
if n_warnings > 0 {
203203
if !output_json {
204204
eprint!("{}", template.format_warnings(prog_file));
205-
let word = if n_warnings == 1 { "warning" } else { "warnings" };
205+
let word = if n_warnings == 1 {
206+
"warning"
207+
} else {
208+
"warnings"
209+
};
206210
eprintln!(
207211
"\x1b[1;33mwarning\x1b[0m: `{}` generated {} {}",
208212
prog_file, n_warnings, word,

0 commit comments

Comments
 (0)