瀏覽代碼

testcrate/lib.rs: use #![no_std] unconditionally

Paolo Teti 7 年之前
父節點
當前提交
86612733be
共有 1 個文件被更改,包括 1 次插入9 次删除
  1. 1 9
      testcrate/src/lib.rs

+ 1 - 9
testcrate/src/lib.rs

@@ -1,9 +1 @@
-#![cfg_attr(feature = "no_std", no_std)]
-
-#[cfg(test)]
-mod tests {
-    #[test]
-    fn it_works() {
-        assert_eq!(2 + 2, 4);
-    }
-}
+#![no_std]