summaryrefslogtreecommitdiff
path: root/examples/list.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-03-09 09:38:11 -0500
committerMica White <botahamec@outlook.com>2024-03-09 09:38:11 -0500
commit16b477429c39f0ef7d3b813c9ea945ab8c6d65e5 (patch)
tree6f5122c69a2874bff7a1c06c941c6c4a5eeb91df /examples/list.rs
parent1d1f12da8c9251668a62217620c94fc732ac9f78 (diff)
Add Vec as a lockable type
Diffstat (limited to 'examples/list.rs')
-rw-r--r--examples/list.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/list.rs b/examples/list.rs
index f9b8db8..1f811db 100644
--- a/examples/list.rs
+++ b/examples/list.rs
@@ -35,7 +35,6 @@ fn main() {
data.push(&DATA[rand % 6]);
}
- let data = [data[0], data[1], data[2]];
let mut guard = LockGuard::lock(&data, key);
*guard[0] += *guard[1];
*guard[1] += *guard[2];