mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
add missing unsafe block
The // SAFETY comment already exists -- only the unsafe { .. } was omitted.
This commit is contained in:
parent
e6470f463f
commit
e5b23ef9a0
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ where
|
|||
// - list is properly aligned, dereferencable, and points to an initialized CL, since it is valid
|
||||
// - the lifetime of the resulting reference is limited to this function, during which time
|
||||
// nothing else refers to this memory.
|
||||
let slice = list.as_mut().unwrap().slice();
|
||||
let slice = unsafe { list.as_mut() }.unwrap().slice();
|
||||
if let Some(elt_ref) = slice.get_mut(index) {
|
||||
let mut rv = None;
|
||||
if let Some(elt) = elt_ref.as_mut() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue