Skip to content

Commit

Permalink
fix edition 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Apr 21, 2021
1 parent 0869a40 commit 9c16f3a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ readme = "README.md"
homepage = "https://github.com/paritytech/bn"
repository = "https://github.com/paritytech/bn"
license = "MIT OR Apache-2.0"
edition = "2018"

[features]
default = ["rustc-serialize"]
Expand Down
6 changes: 1 addition & 5 deletions benches/api.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#![feature(test)]
extern crate bincode;
extern crate bn;
extern crate rand;
extern crate test;

use bn::*;
use substrate_bn::*;
use bincode::SizeLimit::Infinite;
use bincode::rustc_serialize::{decode, encode};

Expand Down
5 changes: 1 addition & 4 deletions examples/dh.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// This is an example of three-party Diffie-Hellman key exchange
// Requires two rounds

extern crate bn;
extern crate rand;

use bn::*;
use substrate_bn::*;

fn main() {
let rng = &mut rand::thread_rng();
Expand Down
4 changes: 1 addition & 3 deletions examples/joux.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
extern crate bn;
extern crate rand;
use bn::{Group, Fr, G1, G2, pairing};
use substrate_bn::{Group, Fr, G1, G2, pairing};

fn main() {
let rng = &mut rand::thread_rng();
Expand Down
7 changes: 1 addition & 6 deletions tests/serialization.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#![cfg(feature = "rustc-serialize")]

extern crate rand;
extern crate bn;
extern crate bincode;
extern crate rustc_serialize;

use bn::*;
use substrate_bn::*;

use bincode::SizeLimit::Infinite;
use bincode::rustc_serialize::{encode, decode};
Expand Down

0 comments on commit 9c16f3a

Please sign in to comment.