mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:06:40 +02:00
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:
committed by
GitHub
parent
345c00aa1e
commit
36030cab8a
@ -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> {
|
||||
|
Reference in New Issue
Block a user