File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
14
14
### Fixed
15
15
16
16
- Fixed clippy lints.
17
+ - Fixed ` box_pool! ` emitting clippy lints for ` CamelCase ` types.
17
18
18
19
## [ v0.8.0] - 2023-11-07
19
20
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ macro_rules! box_pool {
100
100
type Data = $data_type;
101
101
102
102
fn singleton( ) -> & ' static $crate:: pool:: boxed:: BoxPoolImpl <$data_type> {
103
+ #[ allow( non_upper_case_globals) ]
103
104
static $name: $crate:: pool:: boxed:: BoxPoolImpl <$data_type> =
104
105
$crate:: pool:: boxed:: BoxPoolImpl :: new( ) ;
105
106
@@ -554,4 +555,10 @@ mod tests {
554
555
assert ! ( once. is_ok( ) ) ;
555
556
assert ! ( twice. is_ok( ) ) ;
556
557
}
558
+
559
+ #[ test]
560
+ fn box_pool_case ( ) {
561
+ // https://github.com/rust-embedded/heapless/issues/411
562
+ box_pool ! ( CamelCaseType : u128 ) ;
563
+ }
557
564
}
You can’t perform that action at this time.
0 commit comments