Skip to content

Commit 193f285

Browse files
committed
Don't require bundled with tokio_backend.
1 parent 9e99112 commit 193f285

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libevent-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ buildtime_bindgen = ["bindgen"]
2727
openssl = ["openssl-sys"]
2828
openssl_bundled = ["openssl-sys/vendored", "threading"]
2929
threading = []
30-
tokio_backend = ["bundled", "buildtime_bindgen"]
30+
tokio_backend = ["buildtime_bindgen"]
3131

3232
# features for development
3333
verbose_build = []

src/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(dead_code)]
22

3-
use super::{event::*, tokio_backend::Runtime};
3+
use super::event::*;
44
use crate::EventCallbackWrapper;
55
use bitflags::bitflags;
66
use std::io;
@@ -52,7 +52,7 @@ impl Base {
5252

5353
/// Replaces the standard libevent backend with an owned tokio runtime
5454
#[cfg(feature = "tokio_backend")]
55-
pub fn inject_tokio(&self, runtime: Box<dyn Runtime>) {
55+
pub fn inject_tokio(&self, runtime: Box<dyn crate::tokio_backend::Runtime>) {
5656
super::tokio_backend::inject_tokio(self.base, runtime)
5757
}
5858

0 commit comments

Comments
 (0)