diff --git a/packages/core-macro/tests/ifmt.rs b/packages/core-macro/tests/ifmt.rs index cec12a109..94eccc05b 100644 --- a/packages/core-macro/tests/ifmt.rs +++ b/packages/core-macro/tests/ifmt.rs @@ -1,5 +1,3 @@ -use std::borrow::Borrow; - use dioxus_core_macro::*; #[test] @@ -20,7 +18,7 @@ fn formatting_compiles() { // function calls in formatings work assert_eq!( - format_args_f!("{x.borrow():?}").to_string(), + format_args_f!("{x.clone():?}").to_string(), format!("{:?}", x) ); diff --git a/packages/ssr/src/incremental.rs b/packages/ssr/src/incremental.rs index 01e29b8fc..441800838 100644 --- a/packages/ssr/src/incremental.rs +++ b/packages/ssr/src/incremental.rs @@ -62,13 +62,15 @@ impl WrapBody for DefaultRenderer { } } +type PathMapFn = Arc PathBuf + Send + Sync>; + /// A configuration for the incremental renderer. #[derive(Clone)] pub struct IncrementalRendererConfig { static_dir: PathBuf, memory_cache_limit: usize, invalidate_after: Option, - map_path: Option PathBuf + Send + Sync>>, + map_path: Option, } impl Default for IncrementalRendererConfig { @@ -143,7 +145,7 @@ pub struct IncrementalRenderer { Option), BuildHasherDefault>>, invalidate_after: Option, ssr_renderer: crate::Renderer, - map_path: Arc PathBuf + Send + Sync>, + map_path: PathMapFn, } impl IncrementalRenderer {