Merge pull request #117 from SleeplessOne1917/use-cookie-typo

Fix typo in use_cookie compile errors.
This commit is contained in:
Marc-Stefan Cassola 2024-06-06 11:49:00 +01:00 committed by GitHub
commit e839499a92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 54 additions and 53 deletions

View file

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
the DOM controlled by a value from storage. This leads to hydration errors which can be fixed by setting this new the DOM controlled by a value from storage. This leads to hydration errors which can be fixed by setting this new
option to `true`. option to `true`.
- `cookie::SameSite` is no re-exported - `cookie::SameSite` is no re-exported
- Fixed typo in compiler error messages in `use_cookie`.
### Breaking Changes 🛠 ### Breaking Changes 🛠
@ -132,7 +133,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- You can now convert `leptos::html::HtmlElement<T>` into `Element(s)MaybeSignal`. This should make functions a lot - You can now convert `leptos::html::HtmlElement<T>` into `Element(s)MaybeSignal`. This should make functions a lot
easier to use in directives. easier to use in directives.
- There's now a chapter in the book especially for `Element(s)MaybeSignal`. - There's now a chapter in the book especially for `Element(s)MaybeSignal`.
- Throttled or debounced callbacks (in watch_* or *_fn) no longer are called after the containing scope was cleaned up. - Throttled or debounced callbacks (in watch\__ or _\_fn) no longer are called after the containing scope was cleaned up.
- The document returned from `use_document` now supports the methods `query_selector` and `query_selector_all`. - The document returned from `use_document` now supports the methods `query_selector` and `query_selector_all`.
## [0.9.0] - 2023-12-06 ## [0.9.0] - 2023-12-06

View file

@ -484,13 +484,13 @@ impl<T, Err> Default for UseCookieOptions<T, Err> {
#[cfg(feature = "ssr")] #[cfg(feature = "ssr")]
{ {
#[cfg(all(feature = "actix", feature = "axum"))] #[cfg(all(feature = "actix", feature = "axum"))]
compile_error!("You cannot enable only one of features \"actix\" and \"axum\" at the same time"); compile_error!("You can only enable one of features \"actix\" and \"axum\" at the same time");
#[cfg(all(feature = "actix", feature = "spin"))] #[cfg(all(feature = "actix", feature = "spin"))]
compile_error!("You cannot enable only one of features \"actix\" and \"spin\" at the same time"); compile_error!("You can only enable one of features \"actix\" and \"spin\" at the same time");
#[cfg(all(feature = "axum", feature = "spin"))] #[cfg(all(feature = "axum", feature = "spin"))]
compile_error!("You cannot enable only one of features \"axum\" and \"spin\" at the same time"); compile_error!("You can only enable one of features \"axum\" and \"spin\" at the same time");
#[cfg(feature = "actix")] #[cfg(feature = "actix")]
const COOKIE: http0_2::HeaderName = http0_2::header::COOKIE; const COOKIE: http0_2::HeaderName = http0_2::header::COOKIE;