mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 05:35:03 +00:00
make more readable
This commit is contained in:
1 parent
9b930a18a5
commit
e014c8a553
2 files changed
+2
-50
No files matched your search
@@ -183,7 +183,7 @@ macro_rules! environmental {
|
||||
}
|
||||
}
|
||||
};
|
||||
(trait $name:ident : $t:ident) => {
|
||||
($name:ident : trait $t:ident) => {
|
||||
#[allow(non_camel_case_types)]
|
||||
struct $name { __private_field: () }
|
||||
|
||||
@@ -306,7 +306,7 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
environmental!(trait sum: Sum);
|
||||
environmental!(sum: trait Sum);
|
||||
let numbers = vec![1, 2, 3, 4, 5];
|
||||
let mut numbers = &numbers[..];
|
||||
let got_sum = sum::using(&mut numbers, || {
|
||||
|
||||
Reference in new issue
Block a user