Skip to content

Commit f2b4113

Browse files
committed
Silence deprecations from internal usage
1 parent d57b333 commit f2b4113

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

yew-components/src/select.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
//! This module contains the implementation of the `Select` component.
24
35
use web_sys::HtmlSelectElement;

yew-dsl/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
//! yew_dsl provides an Rust-based syntax for creating DOM elements.
24
//! It provides five basic functions with which you should be able to create complex layouts
35
//! (these are `tag`, `comp`, `text`, `populated_list` and `list`).

yew-functional/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
use std::borrow::Borrow;
24
use std::cell::RefCell;
35
use std::ops::DerefMut;

yew-macro/src/props/component.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ impl ComponentProps {
107107
Self::With(with_props) => {
108108
let expr = &with_props.expr;
109109
quote_spanned! {props_ty.span()=>
110+
#[allow(deprecated)]
110111
let _: #props_ty = #expr;
111112
}
112113
}
@@ -115,6 +116,7 @@ impl ComponentProps {
115116
quote_spanned! {props_ty.span()=>
116117
#[allow(clippy::no_effect)]
117118
if false {
119+
#[allow(deprecated)]
118120
let _ = |__yew_props: #props_ty| {
119121
#check_children
120122
#check_props
@@ -149,6 +151,7 @@ impl ComponentProps {
149151
};
150152

151153
quote_spanned! {props_ty.span()=>
154+
#[allow(deprecated)]
152155
<#props_ty as ::yew::html::Properties>::builder()
153156
#(#set_props)*
154157
#set_children

yew-router/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(deprecated)]
12
#![recursion_limit = "128"]
23
//! Provides routing faculties for the Yew web framework.
34
//!

yewtil/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
//! Utility library for the Yew frontend web framework.
24
//!
35
//! All features:

0 commit comments

Comments
 (0)