Commit eaf15ba
## Summary
Follow-up to #873 ("Don't use `Arc` in `Settings` unnecessarily").
- Remove `Send + Sync` bounds from `Redaction::Dynamic` variant
- Remove `Send + Sync` bounds from `dynamic_redaction()` function
- Remove `Send + Sync` bounds from `Settings::add_dynamic_redaction()`
method
Since `Settings` are stored in thread-local storage and wrapped in `Rc`,
they can never cross thread boundaries. The `Send + Sync` bounds were
vestigial from when `Arc` was used for `DEFAULT_SETTINGS`.
This relaxes the API to allow non-`Send` closures in dynamic redactions,
which is now safe since those closures can never be sent to another
thread.
## Test plan
- [x] All tests pass with `cargo test --all-features`
- [x] No clippy warnings
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent f680868 commit eaf15ba
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| |||
0 commit comments