Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Aug 15, 2024
1 parent 87d67f8 commit 30677e7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 20 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/yew-macro/src/html_tree/lint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::props::{ElementProps, Prop};
/// Lints HTML elements to check if they are well formed. If the element is not well-formed, then
/// use `proc-macro-error` (and the `emit_warning!` macro) to produce a warning. At present, these
/// are only emitted on nightly.
#[allow(dead_code)]
pub trait Lint {
#[cfg_attr(not(yew_lints), allow(dead_code))]
fn lint(element: &HtmlElement);
Expand Down
7 changes: 3 additions & 4 deletions packages/yew/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ wasm-bindgen-futures = "0.4"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# We still need tokio as we have docs linked to it.
tokio = { version = "1.38", features = ["rt"] }
tokio = { version = "1.39", features = ["rt"] }

[dependencies.web-sys]
version = "^0.3.69"
Expand Down Expand Up @@ -79,10 +79,10 @@ features = [
]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { version = "1.38", features = ["full"] }
tokio = { version = "1.39", features = ["full"] }

[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
tokio = { version = "1.33", features = ["macros", "rt", "time"] }
tokio = { version = "1.39", features = ["macros", "rt", "time"] }

[dev-dependencies]
wasm-bindgen-test = "0.3"
Expand All @@ -106,4 +106,3 @@ rustdoc-args = ["--cfg", "documenting"]

[lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(nightly_yew)'] }

1 change: 0 additions & 1 deletion packages/yew/src/html/component/lifecycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ where
///
/// Mostly a thin wrapper that passes the context to a component's lifecycle
/// methods.
#[allow(dead_code)]
pub(crate) trait Stateful {
fn view(&self) -> HtmlResult;
#[cfg(feature = "csr")]
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark-ssr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
yew = { path = "../../packages/yew", features = ["ssr"] }
function_router = { path = "../../examples/function_router" }
tokio = { version = "1.38", features = ["full"] }
tokio = { version = "1.39", features = ["full"] }
average = "0.15.1"
tabled = "0.15.0"
indicatif = "0.17.8"
Expand Down

0 comments on commit 30677e7

Please sign in to comment.