faultbox 0.1.2

Production black-box recorder: structured crash, corruption, and invariant-violation reports with a flight-recorder breadcrumb trail — debuggable from a report without reproduction or shipped symbols.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: MIT OR Apache-2.0

//! The redactor that changes nothing.

use super::redactor::Redactor;

/// A redactor that passes everything through unchanged.
///
/// The default, so that a project which has not thought about redaction gets
/// reports that are obviously unsafe to submit rather than reports that look
/// safe and are not.
pub struct NoopRedactor;

impl Redactor for NoopRedactor {
    fn redact(&self, input: &str) -> String {
        input.to_owned()
    }
}