Skip to content

Commit 60ad3e4

Browse files
authored
add dummy allocator for clippy (#125)
1 parent 18efa58 commit 60ad3e4

File tree

1 file changed

+6
-0
lines changed
  • sdk/pinocchio/src/entrypoint

1 file changed

+6
-0
lines changed

sdk/pinocchio/src/entrypoint/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,12 @@ macro_rules! default_allocator {
318318
start: $crate::entrypoint::HEAP_START_ADDRESS as usize,
319319
len: $crate::entrypoint::HEAP_LENGTH,
320320
};
321+
322+
// A placeholder for `cargo clippy`
323+
#[cfg(not(target_os = "solana"))]
324+
#[cfg(not(feature = "std"))]
325+
#[global_allocator]
326+
static A: $crate::entrypoint::NoAllocator = $crate::entrypoint::NoAllocator;
321327
};
322328
}
323329

0 commit comments

Comments
 (0)