aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:24:50 +0100
committerRobin Krahl <robin.krahl@ireas.org>2018-12-16 12:24:50 +0100
commit56abf0719b895c57b068b5859e719cc87dfda386 (patch)
treefacd14c23d3c3823ac85863bd12f0098c7fec567
parent45b1eec5db3939229f9f3b0a06cd770a396f18e3 (diff)
downloadnitrokey-sys-rs-56abf0719b895c57b068b5859e719cc87dfda386.tar.gz
nitrokey-sys-rs-56abf0719b895c57b068b5859e719cc87dfda386.tar.bz2
Update to Rust edition 2018
This patch updates the crate to use Rust edition 2018. It also changes the use statement for the ffi module to the new crate:: syntax.
-rw-r--r--Cargo.toml1
-rw-r--r--src/lib.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 2486b77..5cc844b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,6 +2,7 @@
name = "nitrokey-sys"
version = "3.4.1"
authors = ["Robin Krahl <robin.krahl@ireas.org>"]
+edition = "2018"
homepage = "https://code.ireas.org/nitrokey-rs/"
repository = "https://git.ireas.org/nitrokey-sys-rs/"
description = "Low-level bindings to libnitrokey for communication with Nitrokey devices"
diff --git a/src/lib.rs b/src/lib.rs
index 169dac4..a179da8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -4,7 +4,7 @@
mod ffi;
-pub use ffi::*;
+pub use crate::ffi::*;
#[cfg(test)]
mod tests {