Skip to content

Commit 2bd3874

Browse files
committed
Remove std attribute from no-std example
The example `no-std.rs`, which is currently broken and commented out, fails to compile without `std` because it has a crate level attribute `#![cfg(feature = "std")]`. Remove the `std` attribute so that the (broken) example compiles with `no-std`.
1 parent 86bf211 commit 2bd3874

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bitreq/examples/no-std.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! This is a simple example to demonstrate the usage of this library.
22
3-
#![cfg(feature = "std")]
4-
53
const _RESPONSE: &str = r#"<!doctype html>
64
<html>
75
<head>
@@ -16,7 +14,7 @@ const _RESPONSE: &str = r#"<!doctype html>
1614
margin: 0;
1715
padding: 0;
1816
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
19-
17+
2018
}
2119
div {
2220
width: 600px;
@@ -36,7 +34,7 @@ const _RESPONSE: &str = r#"<!doctype html>
3634
width: auto;
3735
}
3836
}
39-
</style>
37+
</style>
4038
</head>
4139
4240
<body>

0 commit comments

Comments
 (0)