This is an automated email from the ASF dual-hosted git repository. msciabarra pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-rust.git
commit 66179828c57deb791fe28bb986cb85304469abe7 Author: Bruce Adams <b...@us.ibm.com> AuthorDate: Thu Mar 7 08:27:01 2019 -0500 Switch to Rust 2018 --- rust1.32/src/action_loop/Cargo.toml | 1 + rust1.32/src/action_loop/src/main.rs | 20 ++++++++------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/rust1.32/src/action_loop/Cargo.toml b/rust1.32/src/action_loop/Cargo.toml index 7093ea7..44c18b3 100644 --- a/rust1.32/src/action_loop/Cargo.toml +++ b/rust1.32/src/action_loop/Cargo.toml @@ -2,6 +2,7 @@ name = "action_loop" version = "0.1.0" authors = ["Roberto Diaz <robe...@theagilemonkeys.com>"] +edition = "2018" [dependencies] serde = "1.0" diff --git a/rust1.32/src/action_loop/src/main.rs b/rust1.32/src/action_loop/src/main.rs index 6bb9d5f..9329648 100644 --- a/rust1.32/src/action_loop/src/main.rs +++ b/rust1.32/src/action_loop/src/main.rs @@ -1,18 +1,14 @@ -extern crate actions; -extern crate libc; -extern crate serde; -extern crate serde_derive; -extern crate serde_json; - use actions::main as actionMain; -use serde_derive::Deserialize; +use serde_derive::Deserialize; use serde_json::{Error, Value}; -use std::collections::HashMap; -use std::env; -use std::fs::File; -use std::io::{stderr, stdin, stdout, Write}; -use std::os::unix::io::FromRawFd; +use std::{ + collections::HashMap, + env, + fs::File, + io::{stderr, stdin, stdout, Write}, + os::unix::io::FromRawFd, +}; #[derive(Debug, Clone, PartialEq, Deserialize)] struct Input {