Skip to content

Commit 99305cf

Browse files
committed
fix: suppress the incompatible_msrv lint for newer rust versions
1 parent 5bf8abe commit 99305cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/yew-macro/src/html_tree/html_element.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,15 @@ impl ToTokens for HtmlElement {
454454
}}
455455
});
456456

457-
#[rustversion::since(1.89)]
457+
#[rustversion::since(1.88)]
458458
fn derive_debug_tag(vtag: &Ident) -> String {
459459
let span = vtag.span().unwrap();
460+
#[allow(clippy::incompatible_msrv, reason="the file, line, column methods are stable since 1.88")]
461+
{
460462
format!("[{}:{}:{}] ", span.file(), span.line(), span.column())
463+
}
461464
}
462-
#[rustversion::before(1.89)]
465+
#[rustversion::before(1.88)]
463466
fn derive_debug_tag(_: &Ident) -> &'static str {
464467
""
465468
}

0 commit comments

Comments
 (0)