mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
parent
c5c2bdbf50
commit
125b68e08a
7 changed files with 207 additions and 9 deletions
|
|
@ -4,7 +4,7 @@ use miette::{Context, IntoDiagnostic, Result};
|
|||
use std::borrow::Cow;
|
||||
use tokio::fs::{create_dir_all, write};
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct Mapping<'a> {
|
||||
source_type: MappingSourceType,
|
||||
pub source: Cow<'a, Utf8Path>,
|
||||
|
|
@ -244,7 +244,7 @@ pub fn for_config<'a>(config: &'a HazeConfig) -> impl Iterator<Item = Mapping<'a
|
|||
.chain(default_mappings())
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
pub enum MappingSourceType {
|
||||
Sources,
|
||||
WorkDir,
|
||||
|
|
@ -252,7 +252,7 @@ pub enum MappingSourceType {
|
|||
Absolute,
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
pub enum MappingType {
|
||||
Folder,
|
||||
File,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue