mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Update rustc stable to 1.44
This commit is contained in:
parent
8629f25e48
commit
b6ccd25607
@ -277,7 +277,7 @@ where
|
||||
de();
|
||||
}
|
||||
let new_destructor = callback(deps.borrow());
|
||||
state.deps = deps.clone();
|
||||
state.deps = deps;
|
||||
state.destructor.replace(Box::new(new_destructor));
|
||||
} else if state.destructor.is_none() {
|
||||
should_update = true;
|
||||
|
||||
@ -52,7 +52,7 @@ error[E0599]: no method named `b` found for struct `t4::PropsBuilder<t4::PropsBu
|
||||
| ---------- method `b` not found for this
|
||||
...
|
||||
48 | Props::builder().b(1).a(2).build();
|
||||
| ^ help: there is a method with a similar name: `a`
|
||||
| ^ help: there is an associated function with a similar name: `a`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/fail.rs:67:19
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#[allow(dead_code)]
|
||||
#[rustversion::attr(stable(1.43), test)]
|
||||
#[rustversion::attr(stable(1.44), test)]
|
||||
fn tests() {
|
||||
let t = trybuild::TestCases::new();
|
||||
t.pass("tests/derive_props/pass.rs");
|
||||
|
||||
@ -1,8 +1,13 @@
|
||||
error[E0599]: no function or associated item named `new` found for struct `yew::virtual_dom::vcomp::VChild<std::string::String>` in the current scope
|
||||
--> $DIR/html-component-fail-unimplemented.rs:6:5
|
||||
|
|
||||
6 | html! { <String /> };
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `yew::virtual_dom::vcomp::VChild<std::string::String>`
|
||||
6 | html! { <String /> };
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `yew::virtual_dom::vcomp::VChild<std::string::String>`
|
||||
|
|
||||
::: /Users/jstarry/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/string.rs:282:1
|
||||
|
|
||||
282 | pub struct String {
|
||||
| ----------------- doesn't satisfy `std::string::String: yew::html::Component`
|
||||
|
|
||||
= note: the method `new` exists but the following trait bounds were not satisfied:
|
||||
`std::string::String: yew::html::Component`
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use yew::html;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[rustversion::attr(stable(1.43), test)]
|
||||
#[rustversion::attr(stable(1.44), test)]
|
||||
fn tests() {
|
||||
let t = trybuild::TestCases::new();
|
||||
|
||||
|
||||
@ -231,7 +231,7 @@ pub fn parse(
|
||||
_ => panic!("parser should not be incomplete"),
|
||||
})?;
|
||||
i = ii;
|
||||
state = state.transition(token.clone()).map_err(|reason| {
|
||||
state = state.transition(token).map_err(|reason| {
|
||||
let error = ParseError {
|
||||
reason: Some(reason),
|
||||
expected: vec![],
|
||||
|
||||
@ -35,6 +35,7 @@ impl<IN> Clone for Callback<IN> {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::vtable_address_comparisons)]
|
||||
impl<IN> PartialEq for Callback<IN> {
|
||||
fn eq(&self, other: &Callback<IN>) -> bool {
|
||||
match (&self, &other) {
|
||||
|
||||
@ -26,7 +26,7 @@ impl ReaderService {
|
||||
if let Ok(result) = reader.result() {
|
||||
let array = Uint8Array::new(&result);
|
||||
let data = FileData {
|
||||
name: name,
|
||||
name,
|
||||
content: array.to_vec(),
|
||||
};
|
||||
callback.emit(data);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user