diff options
| author | tv <tv@krebsco.de> | 2026-11-16 23:19:25 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-17 00:19:48 +0100 |
| commit | 9c4ae741ae4303661c05e11b42bf5687bd277c05 (patch) | |
| tree | 91f1feeeb6ec70e2a5b091ac054bd232c6877530 /src/access | |
| parent | 25d99aa993f120c8f6796ea2d91f15c3c26b8201 (diff) | |
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.
Diffstat (limited to 'src/access')
| -rw-r--r-- | src/access/holding.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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))? } } } |
