Skip to content

Commit

Permalink
Rust 2018: run cargo fix --edition-idioms
Browse files Browse the repository at this point in the history
  • Loading branch information
msirringhaus committed Jun 25, 2019
1 parent 0699d1c commit 0bc9269
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
name = "xi-term"
version = "0.1.0"
edition = "2018"

[dependencies]
clap = "2.33.0"
Expand All @@ -16,4 +17,4 @@ indexmap = "1.0.2"
xrl = "0.0.7"
serde = { version = "1.0.93", features = ["derive"] }
serde_json = "1.0.39"
json5 = "0.2.4"
json5 = "0.2.4"
2 changes: 1 addition & 1 deletion src/core/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct KeybindingConfig {
}

impl KeybindingConfig {
pub fn parse(config_path: &Path) -> Result<KeybindingConfig, Box<std::error::Error + Sync + Send + 'static>> {
pub fn parse(config_path: &Path) -> Result<KeybindingConfig, Box<dyn std::error::Error + Sync + Send + 'static>> {
let entries = fs::read_to_string(config_path)?;
// Read the JSON contents of the file as an instance of `User`.
let bindings: Vec<Keybinding> = json5::from_str(&entries)?;
Expand Down
18 changes: 4 additions & 14 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,12 @@
#[macro_use]
extern crate clap;

extern crate failure;

#[macro_use]
extern crate log;
extern crate log4rs;

extern crate futures;
extern crate indexmap;
extern crate termion;
extern crate tokio;
extern crate xdg;
extern crate xrl;

extern crate json5;
extern crate serde;
extern crate serde_json;

use log4rs;
use tokio;
use xrl;

mod core;
mod widgets;
Expand Down

0 comments on commit 0bc9269

Please sign in to comment.