Skip to content

Unsafe code block not working #6

Description

@guilhermeAlmeida1

Make this work

rustracking/src/matrix.rs

Lines 315 to 337 in 688063c

// galmeida: fix
// impl<'a, T : Good<T>> IntoIterator for &'a mut Matrix3<T> {
// type Item = &'a mut T;
// type IntoIter = std::array::IntoIter<&'a mut T, 9>;
// fn into_iter(self) -> Self::IntoIter {
// let mut arr : [&mut T; 9];
// unsafe {
// arr = [
// &mut self.data[0],
// &mut self.data[1],
// &mut self.data[2],
// &mut self.data[3],
// &mut self.data[4],
// &mut self.data[5],
// &mut self.data[6],
// &mut self.data[7],
// &mut self.data[8],
// ];
// };
// arr.into_iter()
// }
// }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions