mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 05:50:29 +00:00
Revert to using wrong case for static variable name.
This commit is contained in:
parent
5592534dd3
commit
5e15c4f03f
@ -89,10 +89,13 @@ macro_rules! arc_pool {
|
||||
type Data = $data_type;
|
||||
|
||||
fn singleton() -> &'static $crate::pool::arc::ArcPoolImpl<$data_type> {
|
||||
static POOL: $crate::pool::arc::ArcPoolImpl<$data_type> =
|
||||
// Even though the static variable is not exposed to user code, it is
|
||||
// still useful to have a descriptive symbol name for debugging.
|
||||
#[allow(non_upper_case_globals)]
|
||||
static $name: $crate::pool::arc::ArcPoolImpl<$data_type> =
|
||||
$crate::pool::arc::ArcPoolImpl::new();
|
||||
|
||||
&POOL
|
||||
&$name
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -101,10 +101,13 @@ macro_rules! box_pool {
|
||||
type Data = $data_type;
|
||||
|
||||
fn singleton() -> &'static $crate::pool::boxed::BoxPoolImpl<$data_type> {
|
||||
static POOL: $crate::pool::boxed::BoxPoolImpl<$data_type> =
|
||||
// Even though the static variable is not exposed to user code, it is
|
||||
// still useful to have a descriptive symbol name for debugging.
|
||||
#[allow(non_upper_case_globals)]
|
||||
static $name: $crate::pool::boxed::BoxPoolImpl<$data_type> =
|
||||
$crate::pool::boxed::BoxPoolImpl::new();
|
||||
|
||||
&POOL
|
||||
&$name
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -88,10 +88,13 @@ macro_rules! object_pool {
|
||||
type Data = $data_type;
|
||||
|
||||
fn singleton() -> &'static $crate::pool::object::ObjectPoolImpl<$data_type> {
|
||||
static POOL: $crate::pool::object::ObjectPoolImpl<$data_type> =
|
||||
// Even though the static variable is not exposed to user code, it is
|
||||
// still useful to have a descriptive symbol name for debugging.
|
||||
#[allow(non_upper_case_globals)]
|
||||
static $name: $crate::pool::object::ObjectPoolImpl<$data_type> =
|
||||
$crate::pool::object::ObjectPoolImpl::new();
|
||||
|
||||
&POOL
|
||||
&$name
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user