forked from extern/nushell
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:
parent
345c00aa1e
commit
36030cab8a
37
Cargo.lock
generated
37
Cargo.lock
generated
@ -1465,18 +1465,6 @@ dependencies = [
|
|||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "getset"
|
|
||||||
version = "0.1.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "e45727250e75cc04ff2846a66397da8ef2b3db8e40e0cef4df67950a07621eb9"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro-error",
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn 1.0.109",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gimli"
|
name = "gimli"
|
||||||
version = "0.27.3"
|
version = "0.27.3"
|
||||||
@ -2967,7 +2955,6 @@ dependencies = [
|
|||||||
name = "nu-test-support"
|
name = "nu-test-support"
|
||||||
version = "0.82.1"
|
version = "0.82.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"getset",
|
|
||||||
"hamcrest2",
|
"hamcrest2",
|
||||||
"nu-glob",
|
"nu-glob",
|
||||||
"nu-path",
|
"nu-path",
|
||||||
@ -3968,30 +3955,6 @@ dependencies = [
|
|||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "proc-macro-error"
|
|
||||||
version = "1.0.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro-error-attr",
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn 1.0.109",
|
|
||||||
"version_check",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "proc-macro-error-attr"
|
|
||||||
version = "1.0.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"version_check",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "proc-macro-hack"
|
name = "proc-macro-hack"
|
||||||
version = "0.5.20+deprecated"
|
version = "0.5.20+deprecated"
|
||||||
|
@ -18,6 +18,5 @@ nu-utils = { path="../nu-utils", version = "0.82.1" }
|
|||||||
|
|
||||||
num-format = "0.4"
|
num-format = "0.4"
|
||||||
which = "4.3"
|
which = "4.3"
|
||||||
getset = "0.1"
|
|
||||||
tempfile = "3.2"
|
tempfile = "3.2"
|
||||||
hamcrest2 = "0.3"
|
hamcrest2 = "0.3"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
use super::Director;
|
use super::Director;
|
||||||
use crate::fs;
|
use crate::fs;
|
||||||
use crate::fs::Stub;
|
use crate::fs::Stub;
|
||||||
use getset::Getters;
|
|
||||||
use nu_glob::glob;
|
use nu_glob::glob;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::str;
|
use std::str;
|
||||||
@ -31,8 +30,7 @@ pub struct Playground<'a> {
|
|||||||
dirs: &'a Dirs,
|
dirs: &'a Dirs,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Getters, Clone)]
|
#[derive(Default, Clone)]
|
||||||
#[get = "pub"]
|
|
||||||
pub struct Dirs {
|
pub struct Dirs {
|
||||||
pub root: PathBuf,
|
pub root: PathBuf,
|
||||||
pub test: PathBuf,
|
pub test: PathBuf,
|
||||||
@ -47,6 +45,14 @@ impl Dirs {
|
|||||||
pub fn config_fixtures(&self) -> PathBuf {
|
pub fn config_fixtures(&self) -> PathBuf {
|
||||||
self.fixtures.join("playground/config")
|
self.fixtures.join("playground/config")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn root(&self) -> &PathBuf {
|
||||||
|
&self.root
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn test(&self) -> &PathBuf {
|
||||||
|
&self.test
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Playground<'a> {
|
impl<'a> Playground<'a> {
|
||||||
|
Loading…
Reference in New Issue
Block a user