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

Tiny PR: elsa::sync::FrozenMap now implements Default #3044

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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