We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d562e8d commit 26253e3Copy full SHA for 26253e3
1 file changed
statum-macros/src/lib.rs
@@ -227,7 +227,11 @@ pub fn validators(attr: TokenStream, item: TokenStream) -> TokenStream {
227
fn resolved_current_module_path(span: Span, macro_name: &str) -> Result<String, TokenStream> {
228
let resolved = module_path_for_span(span)
229
.or_else(current_module_path_opt)
230
- .or_else(|| crate::callsite::source_info_for_span(span).is_none().then_some("crate".to_string()));
+ .or_else(|| {
231
+ crate::callsite::source_info_for_span(span)
232
+ .is_none()
233
+ .then_some("crate".to_string())
234
+ });
235
236
resolved.ok_or_else(|| {
237
let message = format!(
0 commit comments