Fix docs
This commit is contained in:
parent
34efb23bf6
commit
d4e83e48bd
1 changed files with 2 additions and 4 deletions
|
@ -705,10 +705,8 @@ impl<'a> VisualTestContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This returns a mutable reference to the test context (which is usually
|
/// Get an &mut VisualTestContext (which is mostly what you need to pass to other methods).
|
||||||
// what you want when testing).
|
/// This method internally retains the VisualTestContext until the end of the test.
|
||||||
// A side-effect of calling this method is that the context will be retained until the
|
|
||||||
// end of the test (which is usually not a problem).
|
|
||||||
pub fn as_mut(self) -> &'static mut Self {
|
pub fn as_mut(self) -> &'static mut Self {
|
||||||
let ptr = Box::into_raw(Box::new(self));
|
let ptr = Box::into_raw(Box::new(self));
|
||||||
// safety: on_quit will be called after the test has finished.
|
// safety: on_quit will be called after the test has finished.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue