Skip to content

Commit

Permalink
Fix badly formed silent option
Browse files Browse the repository at this point in the history
  • Loading branch information
szeweq committed Jun 3, 2024
1 parent 8dae095 commit e2fa1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib-core/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct ErrorCollector {
impl ErrorCollector {
/// Creates a new `ErrorCollector` with a `silent` option.
#[must_use]
pub fn new(silent: bool) -> Self { Self { vec: silent.then(Vec::new), name: "".into() } }
pub fn new(silent: bool) -> Self { Self { vec: (!silent).then(Vec::new), name: "".into() } }

/// Sets the new prefix name for collected entries.
pub fn rename(&mut self, name: &str) {
Expand Down

0 comments on commit e2fa1c0

Please sign in to comment.