Merge pull request #144 from gwenn/clippy
Fix one clippy warning
diff --git a/src/highlight.rs b/src/highlight.rs
index 7ecba81..e8a9742 100644
--- a/src/highlight.rs
+++ b/src/highlight.rs
@@ -26,7 +26,10 @@
}
/// Takes the dynamic `prompt` and
/// returns the highlighted version (with ANSI color).
- #[deprecated(since="2.0.1", note="please use `highlight_prompt` instead")]
+ #[deprecated(
+ since = "2.0.1",
+ note = "please use `highlight_prompt` instead"
+ )]
fn highlight_dynamic_prompt<'p>(&self, prompt: &'p str) -> Cow<'p, str> {
Borrowed(prompt)
}
diff --git a/src/tty/unix.rs b/src/tty/unix.rs
index a23d18d..97821e8 100644
--- a/src/tty/unix.rs
+++ b/src/tty/unix.rs
@@ -27,6 +27,7 @@
/// Unsupported Terminals that don't support RAW mode
static UNSUPPORTED_TERM: [&'static str; 3] = ["dumb", "cons25", "emacs"];
+#[allow(identity_conversion)]
fn get_win_size() -> (usize, usize) {
use std::mem::zeroed;