fix area.inner() param type

This commit is contained in:
kyfanc 2024-08-27 12:07:54 +08:00
parent 3aa350edbe
commit d10bce758f

View File

@ -100,7 +100,7 @@ pub fn visible_popup(compositor: &mut Compositor) -> Option<&mut Popup<Self>> {
impl Component for Hover {
fn render(&mut self, area: Rect, surface: &mut Buffer, cx: &mut Context) {
let margin = Margin::horizontal(1);
let area = area.inner(&margin);
let area = area.inner(margin);
let (Some(header), Some(contents)) = (self.header.as_ref(), self.contents.as_ref()) else {
log::info!("markdown not ready");