Remove underused devdep getset (#9727)

# Description
We only used this procmacro crate in one place to generate two trivial
getters. Straightforward to replace. Should reduce test-compilation
requirements a bit.

# User-Facing Changes
None
This commit is contained in:
Stefan Holderbach
2023-07-18 20:18:52 +02:00
committed by GitHub
parent 345c00aa1e
commit 36030cab8a
3 changed files with 9 additions and 41 deletions

View File

@ -1,7 +1,6 @@
use super::Director;
use crate::fs;
use crate::fs::Stub;
use getset::Getters;
use nu_glob::glob;
use std::path::{Path, PathBuf};
use std::str;
@ -31,8 +30,7 @@ pub struct Playground<'a> {
dirs: &'a Dirs,
}
#[derive(Default, Getters, Clone)]
#[get = "pub"]
#[derive(Default, Clone)]
pub struct Dirs {
pub root: PathBuf,
pub test: PathBuf,
@ -47,6 +45,14 @@ impl Dirs {
pub fn config_fixtures(&self) -> PathBuf {
self.fixtures.join("playground/config")
}
pub fn root(&self) -> &PathBuf {
&self.root
}
pub fn test(&self) -> &PathBuf {
&self.test
}
}
impl<'a> Playground<'a> {