Skip to content

Commit 3c553fe

Browse files
committed
Tidy up
1 parent 448bca0 commit 3c553fe

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ fn build() {
9797
config.define("NNG_TESTS", "OFF");
9898
config.define("NNG_ENABLE_COMPAT", "OFF");
9999
config.define("NNG_TRANSPORT_WS", "OFF");
100+
//File descriptor is experimental transport so don't use it
101+
//idk why it is ON by default
102+
config.define("NNG_TRANSPORT_FDC", "OFF");
103+
100104
#[cfg(not(feature = "http"))]
101105
config.define("NNG_ENABLE_HTTP", "OFF");
102106
#[cfg(feature = "http")]

tests/features.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ fn should_verify_http_feature_enabled() {
1010
#[cfg(not(feature = "http"))]
1111
assert_eq!(result, nng_c_sys::nng_errno_enum::NNG_ENOTSUP);
1212
#[cfg(feature = "http")]
13-
assert_eq!(result, 0);
14-
15-
#[cfg(feature = "http")]
16-
unsafe {
17-
nng_c_sys::nng_http_req_free(req);
13+
{
14+
assert_eq!(result, 0);
15+
unsafe {
16+
nng_c_sys::nng_http_req_free(req);
17+
}
1818
}
1919
}

0 commit comments

Comments
 (0)