Skip to content

Commit

Permalink
Bump to 2018 edition
Browse files Browse the repository at this point in the history
This commit bumps the code to use Rust 2018.
  • Loading branch information
bltavares committed Feb 7, 2020
1 parent 9753787 commit b15288e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 22 deletions.
22 changes: 12 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[package]
name = "sparse-bitfield"
version = "0.10.0"
license = "MIT OR Apache-2.0"
repository = "https://github.com/datrs/sparse-bitfield"
documentation = "https://docs.rs/sparse-bitfield"
description = "Bitfield that allocates a series of small buffers"
authors = ["Yoshua Wuyts <yoshuawuyts@gmail.com>"]
readme = "README.md"
name = 'sparse-bitfield'
version = '0.10.0'
license = 'MIT OR Apache-2.0'
repository = 'https://github.com/datrs/sparse-bitfield'
documentation = 'https://docs.rs/sparse-bitfield'
description = 'Bitfield that allocates a series of small buffers'
authors = ['Yoshua Wuyts <yoshuawuyts@gmail.com>']
readme = 'README.md'
edition = '2018'

[dependencies]
memory-pager = "0.9.0"
memory-pager = '0.9.0'

[dev-dependencies]
proptest = "0.9.0"
proptest = '0.9.5'
failure = '0.1.6'
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
#![cfg_attr(nightly, doc(include = "../README.md"))]
#![cfg_attr(test, deny(warnings))]

extern crate memory_pager;

mod change;
mod iter;

pub use change::Change;
pub use iter::Iter;
pub use crate::change::Change;
pub use crate::iter::Iter;

use memory_pager::Pager;
use std::fs::File;
Expand Down
4 changes: 1 addition & 3 deletions tests/model.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
extern crate sparse_bitfield;
#[macro_use]
extern crate proptest;
use proptest::proptest;

use sparse_bitfield::{Bitfield, Change};

Expand Down
2 changes: 0 additions & 2 deletions tests/regression.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate sparse_bitfield;

use sparse_bitfield::{Bitfield, Change};

// src/lib.rs::is_even was incorrectly flagging 6 as odd.
Expand Down
3 changes: 0 additions & 3 deletions tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate failure;
extern crate sparse_bitfield;

use failure::Error;
use sparse_bitfield::{Bitfield, Change};
use std::fs;
Expand Down

0 comments on commit b15288e

Please sign in to comment.