Form::state_mut() (see below) calls RC::get_mut_unchecked which is unsafe and nightly only. Unfortunately, it is not documented why this is necessary (and why Rc::get_mut() cannot be used instead). Changing this would allow us to remove the feature requirement. As a result, it would be possible to compile yew_form on stable Rust.
|
pub(crate) fn state_mut(&mut self) -> &mut FormState<T> { |
|
unsafe { |
|
Rc::get_mut_unchecked(&mut self.state) |
|
} |
|
} |
Form::state_mut()(see below) callsRC::get_mut_uncheckedwhich is unsafe and nightly only. Unfortunately, it is not documented why this is necessary (and whyRc::get_mut()cannot be used instead). Changing this would allow us to remove the feature requirement. As a result, it would be possible to compile yew_form on stable Rust.yew_form/yew_form/src/form.rs
Lines 24 to 28 in afd25ef