Cleaner verbosity set

This commit is contained in:
Thomas Forgione 2018-07-02 11:35:12 +02:00
parent 973810b776
commit 98d5b3c5e4
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 1 additions and 3 deletions

View File

@ -53,9 +53,7 @@ fn main() {
.get_matches();
// Set verbose flag
verbose_log::log::VERBOSE.with(|verbose| {
*verbose.borrow_mut() = matches.occurrences_of("verbose") > 0;
});
verbose_log::set(matches.occurrences_of("verbose") > 0);
use std::f64::{MIN, MAX};
let mut bbox = BoundingBox3::new(