faultbox/redact/noop.rs
1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3//! The redactor that changes nothing.
4
5use super::redactor::Redactor;
6
7/// A redactor that passes everything through unchanged.
8///
9/// The default, so that a project which has not thought about redaction gets
10/// reports that are obviously unsafe to submit rather than reports that look
11/// safe and are not.
12pub struct NoopRedactor;
13
14impl Redactor for NoopRedactor {
15 fn redact(&self, input: &str) -> String {
16 input.to_owned()
17 }
18}