diff --git a/src/lib.rs b/src/lib.rs index 862b7e9..8600acd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,7 +48,7 @@ pub mod android { Ok(string) => string, }; - let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap()).expect("Bad client config file structure"); + let config: ClientConfiguration = serde_yaml::from_slice(RFC4648.decode(cfg_raw.as_bytes()).unwrap().as_slice()).expect("Bad client config file structure"); //client::client_mode(config); //let output = env.new_string("gabber").expect("Couldn't create java string!");