fix tests

This commit is contained in:
Evan Almloff committed 2024-01-02 15:19:01 -06:00
1 parent 73b7f450a5
commit b7c9817cf3
6 files changed
+52 -42

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ pub struct MappedSignal<U: 'static + ?Sized> {
impl MappedSignal<()> {
/// Create a new mapped signal.
pub fn new<T, S: Storage<SignalData<T>>, U>(
pub fn new<T, S: Storage<SignalData<T>>, U: ?Sized>(
signal: Signal<T, S>,
mapping: impl Fn(&T) -> &U + 'static,
) -> MappedSignal<
+1 -4
View File
@@ -18,10 +18,7 @@ fn create_signals_global() {
let signal = create_without_cx();
let mapped = MappedSignal::new(signal, |v| v.as_bytes());
render! {
"{signal:?}"
"{mapped:?}"
}
render! { "{signal:?}", "{mapped:?}" }
}
let _edits = dom.rebuild().santize();