Skip to content

Commit 1894e59

Browse files
committed
Fix clippy
1 parent d7f3275 commit 1894e59

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

crates/cfg_support/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ macro_rules! target_cfg {
184184
$({$($grouped:tt)+})+
185185
) => {
186186
($(
187-
(target_cfg!($($grouped)+))
187+
target_cfg!($($grouped)+)
188188
)&&+)
189189
};
190190

@@ -195,7 +195,7 @@ macro_rules! target_cfg {
195195
$({$($grouped:tt)+})+
196196
) => {
197197
($(
198-
(target_cfg!($($grouped)+))
198+
target_cfg!($($grouped)+)
199199
)||+)
200200
};
201201

crates/errors/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ macro_rules! atry {
113113
$op.with_context(|| {
114114
let mut ar = $crate::AnnotatedMessage::default();
115115
$(
116-
atry!(@aa ar $annotation);
116+
$crate::atry!(@aa ar $annotation);
117117
)+
118118
ar
119119
})?
@@ -126,11 +126,10 @@ macro_rules! atry {
126126
#[macro_export]
127127
macro_rules! a_ok_or {
128128
($option:expr ; $( $annotation:tt )+) => {{
129-
use $crate::atry;
130129
$option.ok_or_else(|| {
131130
let mut ar = $crate::AnnotatedMessage::default();
132131
$(
133-
atry!(@aa ar $annotation);
132+
$crate::atry!(@aa ar $annotation);
134133
)+
135134
ar
136135
})?

0 commit comments

Comments
 (0)