diff options
author | Tim Oram <dev@mitmaro.ca> | 2018-04-01 12:00:38 -0230 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2018-04-01 12:00:38 -0230 |
commit | 740821b7d8c9f664a82f94b69fa4dab795b400da (patch) | |
tree | 9bc28ae4c1ba84aff638c09d4c9c5dd6e4150d37 /src | |
parent | 2a042d6a12ce93b8b390642c4bd80805abaf65df (diff) |
Update dependencies
Diffstat (limited to 'src')
-rw-r--r-- | src/git_interactive.rs | 4 | ||||
-rw-r--r-- | src/main.rs | 11 | ||||
-rw-r--r-- | src/window.rs | 2 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/git_interactive.rs b/src/git_interactive.rs index c4c3678..e60118b 100644 --- a/src/git_interactive.rs +++ b/src/git_interactive.rs @@ -57,9 +57,9 @@ impl GitInteractive { match parsed_result { Ok(lines) => Ok( GitInteractive { - git_root: git_root, + git_root, filepath: path, - lines: lines, + lines, selected_line_index: 1 } ), diff --git a/src/main.rs b/src/main.rs index 12d473a..e737a2a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,15 +1,12 @@ #![cfg_attr(feature="clippy", feature(plugin))] #![cfg_attr(feature="clippy", plugin(clippy))] -extern crate pancurses; extern crate pad; +extern crate pancurses; -use std::env; -use std::process; - -mod commit; mod action; mod application; +mod commit; mod git_interactive; mod line; mod window; @@ -18,9 +15,11 @@ mod mocks; use application::Application; use git_interactive::GitInteractive; +use std::env; +use std::process; use window::Window; -const VERSION: &'static str = env!("CARGO_PKG_VERSION"); +const VERSION: &str = env!("CARGO_PKG_VERSION"); fn main() { let filepath = match env::args().nth(1) { diff --git a/src/window.rs b/src/window.rs index d68789c..15eecd4 100644 --- a/src/window.rs +++ b/src/window.rs @@ -67,7 +67,7 @@ impl Window { Window { - window: window, + window, top: 0 } } |