Skip to content

Commit

Permalink
feat: Derive traits for providers
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoh committed Nov 3, 2024
1 parent c98227c commit 4a95745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fs_provider.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::provider::VoxProvider;
use miette::IntoDiagnostic;

#[derive(Debug)]
#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
/// A provider of the Vox build system that reads & writes from the file system.
pub struct FsProvider;
impl VoxProvider for FsProvider {
Expand Down
2 changes: 1 addition & 1 deletion src/ram_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{
sync::{Arc, Mutex},
};

#[derive(Debug)]
#[derive(Clone, Debug, Default)]
/// A provider of the Vox build system that reads & writes from memory.
pub struct RamProvider {
files: Arc<Mutex<HashMap<std::path::PathBuf, String>>>,
Expand Down

0 comments on commit 4a95745

Please sign in to comment.