maxcountryman / axum-sessions

🥠 Cookie-based sessions for Axum via async-session.
MIT License
74 stars 18 forks source link

Rustdoc code doesn't compile due to minor import error #25

Closed tekul closed 7 months ago

tekul commented 1 year ago

This line in lib.rs needs the async_session module name removed since MemoryStore is imported directly. The same example in the README is already correct.

maxcountryman commented 1 year ago

Is this still an issue?

tekul commented 1 year ago

Looks like it. I created a PR #45 to make it the same as the README. I'm not sure why the doctest example works in that file though, which was doing the same thing (possibly because the crate re-exposes async_session at the top level?). It definitely doesn't work when I copy it in an app though - just a basic Rust import issue.