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.
clippy
1 parent ca6bae8 commit 9b0fe76Copy full SHA for 9b0fe76
validator_worker/src/main.rs
@@ -121,16 +121,15 @@ fn run<A: Adapter + 'static>(
121
is_single_tick: bool,
122
sentry_url: &str,
123
config: &Config,
124
- adapter: A,
+ mut adapter: A,
125
) -> Result<(), Box<dyn Error>> {
126
- let mut sentry_adapter = adapter.clone();
127
// unlock adapter
128
- sentry_adapter.unlock()?;
+ adapter.unlock()?;
129
130
let args = Args {
131
sentry_url: sentry_url.to_owned(),
132
config: config.to_owned(),
133
- adapter: sentry_adapter,
+ adapter,
134
};
135
136
if is_single_tick {
0 commit comments