Skip to content

Commit 6617982

Browse files
author
Bruce Adams
committed
Switch to Rust 2018
1 parent 9d79c4b commit 6617982

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

rust1.32/src/action_loop/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "action_loop"
33
version = "0.1.0"
44
authors = ["Roberto Diaz <roberto@theagilemonkeys.com>"]
5+
edition = "2018"
56

67
[dependencies]
78
serde = "1.0"

rust1.32/src/action_loop/src/main.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
extern crate actions;
2-
extern crate libc;
3-
extern crate serde;
4-
extern crate serde_derive;
5-
extern crate serde_json;
6-
71
use actions::main as actionMain;
8-
use serde_derive::Deserialize;
92

3+
use serde_derive::Deserialize;
104
use serde_json::{Error, Value};
11-
use std::collections::HashMap;
12-
use std::env;
13-
use std::fs::File;
14-
use std::io::{stderr, stdin, stdout, Write};
15-
use std::os::unix::io::FromRawFd;
5+
use std::{
6+
collections::HashMap,
7+
env,
8+
fs::File,
9+
io::{stderr, stdin, stdout, Write},
10+
os::unix::io::FromRawFd,
11+
};
1612

1713
#[derive(Debug, Clone, PartialEq, Deserialize)]
1814
struct Input {

0 commit comments

Comments
 (0)