rustversion 1.0.22 turns off incompatible_msrv automatically (#3889)

This commit is contained in:
Siyuan Yan 2025-08-10 10:31:46 +09:00 committed by GitHub
parent 7955547b40
commit 4ca16f95d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

4
Cargo.lock generated
View File

@ -2766,9 +2766,9 @@ dependencies = [
[[package]]
name = "rustversion"
version = "1.0.20"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2"
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "ryu"

View File

@ -457,11 +457,8 @@ impl ToTokens for HtmlElement {
#[rustversion::since(1.88)]
fn derive_debug_tag(vtag: &Ident) -> String {
let span = vtag.span().unwrap();
#[allow(clippy::incompatible_msrv)]
{
// the file, line, column methods are stable since 1.88
format!("[{}:{}:{}] ", span.file(), span.line(), span.column())
}
}
#[rustversion::before(1.88)]
fn derive_debug_tag(_: &Ident) -> &'static str {