Update gio-runtime feature to glib/gio 0.14

pull/94/head 0.14.0
Sebastian Dröge 3 years ago
parent b201d954cc
commit 5726be5f2b
  1. 1
      CHANGELOG.md
  2. 4
      Cargo.toml
  3. 8
      src/gio.rs

@ -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

@ -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"

@ -75,13 +75,13 @@ impl<T: IsA<gio::IOStream>> IOStreamAsyncReadWrite<T> {
/// Create a new `gio::IOStream` adapter
fn new(stream: T) -> Result<IOStreamAsyncReadWrite<T>, T> {
let write = stream
.get_output_stream()
.and_then(|s| s.dynamic_cast::<gio::PollableOutputStream>().ok())
.output_stream()
.dynamic_cast::<gio::PollableOutputStream>().ok()
.and_then(|s| s.into_async_write().ok());
let read = stream
.get_input_stream()
.and_then(|s| s.dynamic_cast::<gio::PollableInputStream>().ok())
.input_stream()
.dynamic_cast::<gio::PollableInputStream>().ok()
.and_then(|s| s.into_async_read().ok());
let (read, write) = match (read, write) {

Loading…
Cancel
Save