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

Commit

Permalink
elsa::sync::FrozenMap now implements Default
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges authored Apr 19, 2023
1 parent aa28550 commit 7f57116
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/agent/debuggable-module/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@ use anyhow::Result;

use crate::path::FilePath;

#[derive(Default)]
pub struct Loader {
loaded: elsa::sync::FrozenMap<FilePath, Box<[u8]>>,
}

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()
Expand Down

0 comments on commit 7f57116

Please sign in to comment.