* resolve #273: remove global constant MAX_DEPTH, instead use the respective value from Params * simplify partialeq at mockmainpod
This commit is contained in:
parent
115c3c1152
commit
b6041508e5
7 changed files with 60 additions and 41 deletions
|
|
@ -83,6 +83,9 @@ impl Dictionary {
|
|||
pub fn kvs(&self) -> &HashMap<Key, Value> {
|
||||
&self.kvs
|
||||
}
|
||||
pub fn max_depth(&self) -> usize {
|
||||
self.max_depth
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for Dictionary {
|
||||
|
|
@ -171,6 +174,9 @@ impl Set {
|
|||
pub fn set(&self) -> &HashSet<Value> {
|
||||
&self.set
|
||||
}
|
||||
pub fn max_depth(&self) -> usize {
|
||||
self.max_depth
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for Set {
|
||||
|
|
@ -256,6 +262,9 @@ impl Array {
|
|||
pub fn array(&self) -> &[Value] {
|
||||
&self.array
|
||||
}
|
||||
pub fn max_depth(&self) -> usize {
|
||||
self.max_depth
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for Array {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue