Skip to content

Commit

Permalink
rust: Fix deprecation warnings
Browse files Browse the repository at this point in the history
Came up in a recent CI run.
  • Loading branch information
cgwalters authored and openshift-merge-robot committed Aug 27, 2020
1 parent 6232144 commit 122718c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rust/src/ffiutil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ where
mod tests {
use super::*;
use glib;
use std::error::Error;
use std::{io, ptr};

struct Foo {
Expand Down Expand Up @@ -242,7 +241,7 @@ mod tests {
assert_eq!((*error).domain, gio_sys::g_io_error_quark());
assert_eq!((*error).code, gio_sys::G_IO_ERROR_FAILED);
let e: glib::Error = glib::translate::from_glib_full(error);
assert_eq!(e.description(), "oops");
assert_eq!(e.to_string(), "oops");
}
}

Expand All @@ -256,7 +255,7 @@ mod tests {
assert_eq!((*error).domain, gio_sys::g_io_error_quark());
assert_eq!((*error).code, gio_sys::G_IO_ERROR_FAILED);
let e: glib::Error = glib::translate::from_glib_full(error);
assert_eq!(e.description(), "oops");
assert_eq!(e.to_string(), "oops");
}
}

Expand Down

0 comments on commit 122718c

Please sign in to comment.