std::mem::forget on a value that implements Copy does nothing.

Fri, 13 Oct 2023 13:32:59 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 13 Oct 2023 13:32:59 -0500
changeset 24
8efa7abce7c7
parent 23
a676300f2e66
child 25
d14c877e14b7

std::mem::forget on a value that implements Copy does nothing.

src/linsolve.rs file | annotate | diff | comparison | revisions
--- a/src/linsolve.rs	Fri Oct 13 13:32:46 2023 -0500
+++ b/src/linsolve.rs	Fri Oct 13 13:32:59 2023 -0500
@@ -64,7 +64,7 @@
         (&x as *const _ as *const [[F; K]; M]).read()
     };
 
-    std::mem::forget(x);
+    //std::mem::forget(x);
     xinit
 }
 

mercurial