From 7fcc81dedb37c589c1e21639f6871a1ead402247 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Sat, 19 Jan 2019 23:48:55 -0500 Subject: [PATCH] Fixed the library to use the new Rust 2018 module system. --- Cargo.toml | 1 + examples/enums.rs | 2 +- src/lib.rs | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1a6b151..7d3f6f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ license = "" repository = "https://gitlab.com/CyberMages/Core/binding.git" documentation = "" keywords = ["binding", "c types", "c enums", "c flags", "c strings"] +edition = "2018" [features] diff --git a/examples/enums.rs b/examples/enums.rs index 5b81fc7..0e1daa1 100644 --- a/examples/enums.rs +++ b/examples/enums.rs @@ -7,7 +7,7 @@ c_enum! { /// Test enum is a simple enum testing the /// capabilities of creating a C enum. - enum TestEnum : i32 + enum TestEnum: i32 { /// This is the first item. variant One = 1, diff --git a/src/lib.rs b/src/lib.rs index 3464970..875f12b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,6 @@ #[cfg(not(feature="use_std"))] extern crate core as std; -#[macro_use] extern crate scribe;