Skip to content

Commit d67ce58

Browse files
committed
cleanup
1 parent a4d03a5 commit d67ce58

File tree

1 file changed

+3
-0
lines changed
  • crates/mfem-sys/examples

1 file changed

+3
-0
lines changed

crates/mfem-sys/examples/ex1.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,12 @@ fn ConstantCoefficient_into_Coefficient(
230230
}
231231

232232
fn LinearForm_as_Vector(x: &LinearForm) -> &Vector {
233+
// LinearForm is a subclass of Vector.
233234
unsafe { std::mem::transmute::<&LinearForm, &Vector>(x) }
234235
}
235236

236237
fn LinearForm_as_Vector_mut(x: Pin<&mut LinearForm>) -> Pin<&mut Vector> {
238+
// LinearForm is a subclass of Vector.
237239
unsafe { std::mem::transmute::<Pin<&mut LinearForm>, Pin<&mut Vector>>(x) }
238240
}
239241

@@ -249,5 +251,6 @@ fn slice_mut_of_Vector(v: Pin<&mut Vector>) -> &mut [f64] {
249251
}
250252

251253
fn GSSmoother_as_mut_Solver(s: Pin<&mut GSSmoother>) -> Pin<&mut Solver> {
254+
// GSSmoother is a subclass of Solver.
252255
unsafe { std::mem::transmute::<Pin<&mut GSSmoother>, Pin<&mut Solver>>(s) }
253256
}

0 commit comments

Comments
 (0)