Skip to content

Commit e540be4

Browse files
sypharjyn514
authored andcommitted
fix new clippy warnings
1 parent 0c443c9 commit e540be4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl TestEnvironment {
247247
}
248248

249249
pub(crate) fn override_frontend(&self, init: impl FnOnce(&mut TestFrontend)) -> &TestFrontend {
250-
let mut frontend = TestFrontend::new(&*self);
250+
let mut frontend = TestFrontend::new(self);
251251
init(&mut frontend);
252252
if self.frontend.set(frontend).is_err() {
253253
panic!("cannot call override_frontend after frontend is initialized");
@@ -256,7 +256,7 @@ impl TestEnvironment {
256256
}
257257

258258
pub(crate) fn frontend(&self) -> &TestFrontend {
259-
self.frontend.get_or_init(|| TestFrontend::new(&*self))
259+
self.frontend.get_or_init(|| TestFrontend::new(self))
260260
}
261261

262262
pub(crate) fn fake_release(&self) -> fakes::FakeRelease {

0 commit comments

Comments
 (0)