diff --git a/Cargo.toml b/Cargo.toml index d344e4a..055ce3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ edition = "2018" travis-ci = { repository = "daa84/neovim-lib", branch = "master" } [dependencies] -rmpv = { version ="0.4", features=["with-serde"] } +rmpv = { version ="1.3.1", features=["with-serde"] } log = "0.4" [target.'cfg(unix)'.dependencies] diff --git a/src/rpc/mod.rs b/src/rpc/mod.rs index 8d1aff0..a099e86 100644 --- a/src/rpc/mod.rs +++ b/src/rpc/mod.rs @@ -5,5 +5,4 @@ pub mod model; pub use self::client::Client; pub use self::model::FromVal; pub use self::model::IntoVal; -pub use self::model::RpcMessage; pub use rmpv::Value; diff --git a/tests/lib.rs b/tests/lib.rs index de1e7f2..a079d15 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -76,7 +76,7 @@ fn can_connect_via_unix_socket() { } if one_second <= start.elapsed() { - panic!(format!("neovim socket not found at '{:?}'", &socket_path)); + panic!("neovim socket not found at '{:?}'", &socket_path); } } } @@ -98,17 +98,17 @@ fn can_connect_via_unix_socket() { match servername.as_str() { Some(ref name) => { if Path::new(name) != socket_path { - panic!(format!( + panic!( "Server name does not match socket path! {} != {}", name, socket_path.to_str().unwrap() - )); + ); } } - None => panic!(format!( + None => panic!( "Server name does not match socket path! {:?} != {}", servername, socket_path.to_str().unwrap() - )), + ), } }