From 9c4ae741ae4303661c05e11b42bf5687bd277c05 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 23:19:25 +0000 Subject: access: a generated change's closed path, picked by itself Picked where the path goes, rustc 1.95 takes the pick's type from that place, a slice of strings, and refuses the paths offered: picked by itself, as `rng.pick(&KEYS)` is, it is one of the paths, which goes where a slice of strings does. --- src/access/holding.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/access/holding.rs b/src/access/holding.rs index 3820e79..9f01a0a 100644 --- a/src/access/holding.rs +++ b/src/access/holding.rs @@ -396,7 +396,8 @@ mod tests { meta::path(&[meta::SWARM]), crate::access::policy::path(), ]; - store::write_path(doc, rng.pick(&closed), &json!(1))? + let path = rng.pick(&closed); + store::write_path(doc, path, &json!(1))? } } } -- cgit v1.3.1