diff --git a/CHANGELOG.md b/CHANGELOG.md index 5559a9b..288351d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 certificate checking backend. - Add `verbose-logging` feature that enables more verbose logging via the `log` crate, which was enabled by default before. +- Update `gio-runtime` feature to glib/gio 0.14. ### Added - Make `client_async_tls_with_connector_and_config()` a public function to diff --git a/Cargo.toml b/Cargo.toml index 7154adf..27d5b48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,11 +91,11 @@ version = "0.21" [dependencies.gio] optional = true -version = "0.9" +version = "0.14" [dependencies.glib] optional = true -version = "0.10" +version = "0.14" [dev-dependencies] futures = "0.3" diff --git a/src/gio.rs b/src/gio.rs index d8ab9db..fa103c8 100644 --- a/src/gio.rs +++ b/src/gio.rs @@ -75,13 +75,13 @@ impl> IOStreamAsyncReadWrite { /// Create a new `gio::IOStream` adapter fn new(stream: T) -> Result, T> { let write = stream - .get_output_stream() - .and_then(|s| s.dynamic_cast::().ok()) + .output_stream() + .dynamic_cast::().ok() .and_then(|s| s.into_async_write().ok()); let read = stream - .get_input_stream() - .and_then(|s| s.dynamic_cast::().ok()) + .input_stream() + .dynamic_cast::().ok() .and_then(|s| s.into_async_read().ok()); let (read, write) = match (read, write) {