Skip to content

Commit

Permalink
AsDisplay is no longer an unused import
Browse files Browse the repository at this point in the history
Prior to PR 251, 2 traits were imported (DisplayAsDisplay, PathAsDisplay),
and in some cases only 1 would be used. Now it's 1 trait and is always
used.
  • Loading branch information
dtolnay committed Sep 2, 2023
1 parent 887c9fb commit 7566a29
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion impl/src/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ fn fields_pat(fields: &[Field]) -> TokenStream {
fn use_as_display(needs_as_display: bool) -> Option<TokenStream> {
if needs_as_display {
Some(quote! {
#[allow(unused_imports)]
use thiserror::__private::AsDisplay as _;
})
} else {
Expand Down

0 comments on commit 7566a29

Please sign in to comment.