diff --git a/rust/src/lockfile.rs b/rust/src/lockfile.rs index 1b4c47b716..b1b07a9863 100644 --- a/rust/src/lockfile.rs +++ b/rust/src/lockfile.rs @@ -17,6 +17,7 @@ */ use c_utf8::CUtf8Buf; +use serde_derive::{Deserialize, Serialize}; use serde_json; use serde_yaml; use std::collections::HashMap; @@ -31,6 +32,7 @@ pub struct Lockfile { serialized: CUtf8Buf } +#[derive(PartialEq)] enum InputFormat { YAML, JSON, @@ -251,10 +253,11 @@ packages: mod ffi { use super::*; - use ffiutil::*; use glib_sys; use libc; + use crate::ffiutil::*; + #[no_mangle] pub extern "C" fn ror_lockfile_new( filename: *const libc::c_char,