From 4336f4e3832dde2a38fc32cdc2a5e8a7fdcff25e Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Wed, 13 Mar 2024 07:57:56 -0400 Subject: [PATCH] Allow `unnecessary_conversion_for_trait` in `packaging` module --- internal/src/packaging.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/src/packaging.rs b/internal/src/packaging.rs index bf4f3ba48..a42b7111f 100644 --- a/internal/src/packaging.rs +++ b/internal/src/packaging.rs @@ -1,3 +1,9 @@ +// smoelius: Since the update to `rust_embed` 8.3.0, `unnecessary_conversion_for_trait` started +// firing on `struct Template`. Requiring `!expr.span.from_expansion()` in +// `unnecessary_conversion_for_trait` causes one of its tests to fail. So allow the lint for now. +#![cfg_attr(dylint_lib = "overscoped_allow", allow(overscoped_allow))] +#![cfg_attr(dylint_lib = "supplementary", allow(unnecessary_conversion_for_trait))] + use crate::cargo::{current_metadata, package}; use anyhow::{anyhow, Context, Result}; use rust_embed::RustEmbed;