mirror of https://github.com/zkat/miette.git
Edit: delete last commit changes
This commit is contained in:
parent
9071750c32
commit
89fc324651
|
|
@ -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! {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue