Skip to content

Commit e4fe820

Browse files
committed
Revert contract/src/main.rs
1 parent bd2af5c commit e4fe820

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contract/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#![cfg_attr(not(feature = "simulator"), no_std)]
2-
#![cfg_attr(not(any(feature = "simulator", test)), no_main)]
1+
#![no_std]
2+
#![cfg_attr(not(test), no_main)]
33

4-
#[cfg(any(feature = "simulator", test))]
4+
#[cfg(test)]
55
extern crate alloc;
66

7-
#[cfg(not(any(feature = "simulator", test)))]
7+
#[cfg(not(test))]
88
use ckb_std::default_alloc;
9-
#[cfg(not(any(feature = "simulator", test)))]
9+
#[cfg(not(test))]
1010
ckb_std::entry!(program_entry);
11-
#[cfg(not(any(feature = "simulator", test)))]
11+
#[cfg(not(test))]
1212
default_alloc!();
1313

1414
pub fn program_entry() -> i8 {

0 commit comments

Comments
 (0)