PR review feedback

- doc fixes
- make BobStateHandle safer by moving the state out of the handle.
- handle more match cases explicit in BobState returns
- fewer mutable variables
This commit is contained in:
Floris Bruynooghe
2021-01-27 20:46:46 +01:00
parent 6a834c9756
commit 0c27e8ccaa
4 changed files with 66 additions and 65 deletions

View File

@@ -116,9 +116,9 @@ impl TestContext {
}
}
/// Creates a new configured [TestContext].
/// Creates a new configured [`TestContext`].
///
/// This is a shortcut which automatically calls [TestContext::configure_alice] after
/// This is a shortcut which automatically calls [`TestContext::configure_alice`] after
/// creating the context.
pub async fn new_alice() -> Self {
let t = Self::with_name("alice").await;
@@ -126,7 +126,7 @@ impl TestContext {
t
}
/// Creates a new configured [TestContext].
/// Creates a new configured [`TestContext`].
///
/// This is a shortcut which configures bob@example.net with a fixed key.
pub async fn new_bob() -> Self {