Skip to content

Commit 33742a4

Browse files
committed
lib: whitespace around Userdata invariants list
This fixes a nightly clippy finding: ``` error: doc list item missing indentation --> src/lib.rs:72:5 | 72 | /// If any of these invariants fails, try_drop will return an error. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation ```
1 parent 2b0a45f commit 33742a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ pub(crate) struct Userdata {
6666
/// UserdataGuard pops an entry off the USERDATA stack, restoring the
6767
/// thread-local state to its value previous to the creation of the UserdataGuard.
6868
/// Invariants: As long as a UserdataGuard is live:
69+
///
6970
/// - The stack of userdata items for this thread must have at least one item.
7071
/// - The top item on that stack must be the one this guard was built with.
7172
/// - The `data` field must not be None.
73+
///
7274
/// If any of these invariants fails, try_drop will return an error.
7375
pub(crate) struct UserdataGuard {
7476
// Keep a copy of the data we expect to be popping off the stack. This allows

0 commit comments

Comments
 (0)