Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/hover/render.rs')
-rw-r--r--crates/ide/src/hover/render.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ide/src/hover/render.rs b/crates/ide/src/hover/render.rs
index 4f60321e32..e08bbc5c21 100644
--- a/crates/ide/src/hover/render.rs
+++ b/crates/ide/src/hover/render.rs
@@ -1136,12 +1136,12 @@ fn markup(
}
}
-fn render_memory_layout(
+fn render_memory_layout<'db>(
config: Option<MemoryLayoutHoverConfig>,
- layout: impl FnOnce() -> Result<Layout, LayoutError>,
- offset: impl FnOnce(&Layout) -> Option<u64>,
- padding: impl FnOnce(&Layout) -> Option<(&str, u64)>,
- tag: impl FnOnce(&Layout) -> Option<usize>,
+ layout: impl FnOnce() -> Result<Layout<'db>, LayoutError>,
+ offset: impl FnOnce(&Layout<'db>) -> Option<u64>,
+ padding: impl for<'a> FnOnce(&'a Layout<'db>) -> Option<(&'a str, u64)>,
+ tag: impl FnOnce(&Layout<'db>) -> Option<usize>,
) -> Option<String> {
let config = config?;
let layout = layout().ok()?;