From 7f57116462785662d69195738a59f2a9c45bd167 Mon Sep 17 00:00:00 2001 From: George Pollard Date: Wed, 19 Apr 2023 22:03:13 +0000 Subject: [PATCH] elsa::sync::FrozenMap now implements Default --- src/agent/debuggable-module/src/loader.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/agent/debuggable-module/src/loader.rs b/src/agent/debuggable-module/src/loader.rs index 01c5c88c5cc..c080b99d54c 100644 --- a/src/agent/debuggable-module/src/loader.rs +++ b/src/agent/debuggable-module/src/loader.rs @@ -5,19 +5,11 @@ use anyhow::Result; use crate::path::FilePath; +#[derive(Default)] pub struct Loader { loaded: elsa::sync::FrozenMap>, } -impl Default for Loader { - fn default() -> Self { - Self { - // sync version doesn't have a Default impl - loaded: elsa::sync::FrozenMap::new(), - } - } -} - impl Loader { pub fn new() -> Self { Self::default()