Skip to content

Commit

Permalink
test(session): fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jan 13, 2025
1 parent 56adbf8 commit c6dd039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions actix-session/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ use serde::{de::DeserializeOwned, Serialize};
/// } else {
/// session.insert("counter", 1)?;
/// }
/// // Or use the shorthand
/// session.update_or("counter", |count: i32| count + 1, 1);
///
/// // or use the shorthand
/// session.update_or("counter", 1, |count: i32| count + 1);
///
/// Ok("Welcome!")
/// }
Expand Down
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ update-readmes:
[group("test")]
test:
cargo {{ toolchain }} nextest run --workspace --all-features
cargo {{ toolchain }} test --doc --workspace --all-features

# Test workspace code and docs.
[group("test")]
Expand Down

0 comments on commit c6dd039

Please sign in to comment.