Skip to content

Commit 219003b

Browse files
committed
replaced cell::update with cell::[g|s]et
1 parent 7e443a1 commit 219003b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/alloc/src/raw_vec/tests.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
#![feature(cell_update)]
2-
31
use super::*;
42
use std::cell::Cell;
53

6-
7-
84
#[test]
95
fn allocator_param() {
106
use crate::alloc::AllocErr;
@@ -32,7 +28,7 @@ fn allocator_param() {
3228
}
3329
match Global.alloc(layout) {
3430
ok @ Ok(_) => {
35-
self.fuel.update(|old| old - size);
31+
self.fuel.set(self.fuel.get() - size);
3632
ok
3733
}
3834
err @ Err(_) => err,

0 commit comments

Comments
 (0)