Skip to content

Commit 410d0ec

Browse files
committed
fix: CHttpRequest fields are unused if http bindings are off
Silence the warning, it's ok
1 parent c34d080 commit 410d0ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ctanker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub type LogHandlerCallback = Box<dyn Fn(LogRecord) + Send>;
4141
pub type CHttpRequestHandle = *mut tanker_http_request_handle_t;
4242

4343
#[derive(Debug)]
44+
#[cfg_attr(not(feature = "http"), allow(dead_code))]
4445
pub struct CHttpRequest(pub(crate) *mut tanker_http_request_t);
4546

4647
// SAFETY: ctanker is thread-safe

0 commit comments

Comments
 (0)