Edit: delete last commit changes

This commit is contained in:
Mehrbod Akhlaghpour 2023-02-15 21:29:17 +03:30
parent 9071750c32
commit 89fc324651
2 changed files with 4 additions and 5 deletions

View File

@ -114,10 +114,9 @@ impl Labels {
quote! { quote! {
miette::macro_helpers::OptionalWrapper::<#ty>::new().to_option(&self.#span) miette::macro_helpers::OptionalWrapper::<#ty>::new().to_option(&self.#span)
.map(|#var| miette::LabeledSpan::new_with_span( .map(|#var| miette::LabeledSpan::new_with_span(
std::option::Option::Some(format!(#fmt #args)), std::option::Option::Some(format!(#fmt #args)),
#var.clone(), #var.clone(),
) ))
)
} }
} else { } else {
quote! { quote! {

View File

@ -9,7 +9,7 @@ use crate::{
}; };
pub struct SourceCode { pub struct SourceCode {
pub source_code: syn::Member, source_code: syn::Member,
} }
impl SourceCode { impl SourceCode {