• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![cfg(feature="spin_no_std")]
2 
3 #![no_std]
4 
5 #[macro_use]
6 extern crate lazy_static;
7 
8 lazy_static! {
9     /// Documentation!
10     pub static ref NUMBER: u32 = times_two(3);
11 }
12 
times_two(n: u32) -> u3213 fn times_two(n: u32) -> u32 {
14     n * 2
15 }
16 
17 #[test]
test_basic()18 fn test_basic() {
19     assert_eq!(*NUMBER, 6);
20 }
21