Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 44afdb3

Browse files
authored
elsa::sync::FrozenMap now implements Default (#3044)
1 parent 73c3ada commit 44afdb3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/agent/debuggable-module/src/loader.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,11 @@ use anyhow::Result;
55

66
use crate::path::FilePath;
77

8+
#[derive(Default)]
89
pub struct Loader {
910
loaded: elsa::sync::FrozenMap<FilePath, Box<[u8]>>,
1011
}
1112

12-
impl Default for Loader {
13-
fn default() -> Self {
14-
Self {
15-
// sync version doesn't have a Default impl
16-
loaded: elsa::sync::FrozenMap::new(),
17-
}
18-
}
19-
}
20-
2113
impl Loader {
2214
pub fn new() -> Self {
2315
Self::default()

0 commit comments

Comments
 (0)