Skip to content

Commit b8fe3d4

Browse files
committed
fix: test expected reference
1 parent a03245a commit b8fe3d4

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "A JavaScript-like nested object-like structure non-fallible path
44
repository = "https://github.com/FlakySL/dyn_path"
55
license = "GPL-3.0"
66
readme = "./README.md"
7-
version = "1.0.4"
7+
version = "1.0.5"
88
edition = "2024"
99
authors = ["Esteve Autet <esteve@memw.es>", "Chiko <chiko@envs.net>"]
1010
keywords = [

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//!
4141
//! let map: HashMap<String, HashMap<String, HashMap<i32, ()>>> = HashMap::new();
4242
//!
43-
//! dyn_access!(map.nested.value[0]); // since we don't have any real value this will return None.
43+
//! dyn_access!(map.nested.value[&0]); // since we don't have any real value this will return None.
4444
//! ```
4545
//! Check the available macro documentation to learn more about how to use
4646
//! the specific macros.

src/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pub fn direct_expression() {
5858
#[test]
5959
pub fn path_descriptor() {
6060
let _1 = dyn_path!(very.nested["value"].on.index[1 + 1]);
61+
let _2 = dyn_path!(very.nested["value"].on.index[1 + 1]);
6162

6263
assert_eq!(_1, r#"very.nested["value"].on.index[2]"#)
6364
}

0 commit comments

Comments
 (0)