Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve State and Router docs #1543

Merged
merged 4 commits into from Nov 22, 2022

Commits on Nov 19, 2022

  1. Improve State and Router docs.

    Per my comment in tokio-rs#1313, this improves discoverability of how `State`
    works with nested/merged `Router`s.
    
    I made a few other minor documentation fixes while I was reading:
    
    * Corrected the docs for `Router::nest` to say that it nests another
      `Router` rather than a `Service`. There is a separate function
      (`Router::nest_service`) for the latter.
    * Changed one of the headings in nest.md to use more idiomatic English.
    * Changed awkward phrasing under the "Sharing state with handlers"
      heading of the root documentation page.
    * Removed a trailing period from one of three list items for
      consistency.
    jimmycuadra committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    0649f62 View commit details
    Browse the repository at this point in the history
  2. Update axum/src/extract/state.rs

    Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
    jimmycuadra and davidpdrsn committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    f48e212 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. Configuration menu
    Copy the full SHA
    1e22797 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. Remove mention of nest_service in merge docs.

    Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
    jimmycuadra and davidpdrsn committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    270dd02 View commit details
    Browse the repository at this point in the history