mirror of https://github.com/zkat/miette.git
fix: warnings exposed by increasing MSRV
This commit is contained in:
parent
0e4ed2f9f6
commit
ed15abdff4
|
|
@ -150,7 +150,7 @@ impl Forward {
|
|||
Self::#variant { #field_name, .. } => #field_name.#method_call,
|
||||
},
|
||||
Forward::Unnamed(index) => {
|
||||
let underscores: Vec<_> = core::iter::repeat(quote! { _, }).take(*index).collect();
|
||||
let underscores: Vec<_> = std::iter::repeat_n(quote! { _, }, *index).collect();
|
||||
let unnamed = format_ident!("unnamed");
|
||||
quote! {
|
||||
Self::#variant ( #(#underscores)* #unnamed, .. ) => #unnamed.#method_call,
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ impl HighlighterState for SyntectHighlighterState<'_> {
|
|||
line,
|
||||
&self.highlighter,
|
||||
)
|
||||
.map(|(style, str)| (convert_style(style, use_bg_color).style(str)))
|
||||
.map(|(style, str)| convert_style(style, use_bg_color).style(str))
|
||||
.collect()
|
||||
} else {
|
||||
vec![Style::default().style(line)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue