We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757a802 commit efc20c6Copy full SHA for efc20c6
examples/logs-advanced/src/main.rs
@@ -71,8 +71,8 @@ pub struct FilteringLogProcessor<P: LogProcessor> {
71
impl<P: LogProcessor> FilteringLogProcessor<P> {
72
pub fn new(delegate: P, min_severity: Severity) -> FilteringLogProcessor<P> {
73
FilteringLogProcessor {
74
- delegate: delegate,
75
- min_severity: min_severity,
+ delegate,
+ min_severity,
76
}
77
78
@@ -100,7 +100,7 @@ pub struct EnrichmentLogProcessor<P: LogProcessor> {
100
101
impl<P: LogProcessor> EnrichmentLogProcessor<P> {
102
pub fn new(delegate: P) -> EnrichmentLogProcessor<P> {
103
- EnrichmentLogProcessor { delegate: delegate }
+ EnrichmentLogProcessor { delegate }
104
105
106
0 commit comments