Skip to content

Commit

Permalink
spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Oct 17, 2024
1 parent 42b5280 commit 2ba235f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/controllers/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ Reading private cookies works much like regular cookies, except instead of using
let session_id = cookies.get_private("session_id")?;
```

Decryption will be done automatically, and the controller will be able to accees the plain text value of the cookie.
Decryption will be done automatically, and the controller will be able to access the plain text value of the cookie.
2 changes: 1 addition & 1 deletion docs/docs/controllers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Controller for CurrentTime {
}
```

The `Controller` trait is asynchronous. Support for async traits in Rust is still incomplete, so we use the [`async_trait`](https://docs.rs/async_trait) library to make it easy to use. The trait itself has a few methods, most of which have reasonable defaults. The only methodthat needs to be written by hand is `async fn handle()`.
The `Controller` trait is asynchronous. Support for async traits in Rust is still incomplete, so we use the [`async_trait`](https://docs.rs/async_trait) library to make it easy to use. The trait itself has a few methods, most of which have reasonable defaults. The only method that needs to be written by hand is `async fn handle()`.

#### `handle`

Expand Down
4 changes: 2 additions & 2 deletions rwf/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ pub use crate::controller::{auth::SessionAuth, AuthHandler};
pub use crate::controller::{
Authentication, Controller, Error, ModelController, PageController, RestController, SessionId,
};
pub use crate::http::{Message, Method, Request, Response};
pub use crate::http::{Cookie, CookieBuilder, Message, Method, Request, Response};
pub use crate::job::Job;
pub use crate::logging::Logger;
pub use crate::model::{Migrations, Model, Pool, Scope, ToSql, ToValue};
pub use crate::view::{Template, ToTemplateValue, TurboStream, TurboStreams};

pub use async_trait::async_trait;
pub use time::OffsetDateTime;
pub use time::{Duration, OffsetDateTime};
pub use tokio;

pub use macros::{crud, rest, route};
Expand Down

0 comments on commit 2ba235f

Please sign in to comment.