README doctests: fix safelog

Add some dummy definitions that support the example.
This commit is contained in:
Ian Jackson 2022-10-12 15:00:12 +01:00
parent 99f4511f1e
commit af07e17b45
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ You can disable safe-logging globally (across all threads) or locally
(across a single thread).
```rust
# let debug_mode = true;
# let log_encrypted_data = |_|();
# let big_secret = ();
use safelog::{disable_safe_logging, with_safe_logging_suppressed};
// If we're running in debug mode, turn off safe logging