Skip to content

Commit

Permalink
Use Rust 2018 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lrazovic authored and isislovecruft committed Feb 27, 2023
1 parent 458a955 commit 5974664
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name = "subtle"
# - update README if necessary by semver
# - if any updates were made to the README, also update the module documentation in src/lib.rs
version = "2.4.1"
edition = "2018"
authors = ["Isis Lovecruft <isis@patternsinthevoid.net>",
"Henry de Valence <hdevalence@hdevalence.ca>"]
readme = "README.md"
Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ pub trait ConditionallySelectable: Copy {
/// # Example
///
/// ```
/// # extern crate subtle;
/// use subtle::ConditionallySelectable;
/// #
/// # fn main() {
Expand All @@ -411,7 +410,6 @@ pub trait ConditionallySelectable: Copy {
/// # Example
///
/// ```
/// # extern crate subtle;
/// use subtle::ConditionallySelectable;
/// #
/// # fn main() {
Expand All @@ -437,7 +435,6 @@ pub trait ConditionallySelectable: Copy {
/// # Example
///
/// ```
/// # extern crate subtle;
/// use subtle::ConditionallySelectable;
/// #
/// # fn main() {
Expand Down Expand Up @@ -784,7 +781,6 @@ pub trait ConstantTimeGreater {
/// # Example
///
/// ```
/// # extern crate subtle;
/// use subtle::ConstantTimeGreater;
///
/// let x: u8 = 13;
Expand Down Expand Up @@ -868,7 +864,6 @@ pub trait ConstantTimeLess: ConstantTimeEq + ConstantTimeGreater {
/// # Example
///
/// ```
/// # extern crate subtle;
/// use subtle::ConstantTimeLess;
///
/// let x: u8 = 13;
Expand Down
3 changes: 0 additions & 3 deletions tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate rand;
extern crate subtle;

use rand::rngs::OsRng;
use rand::RngCore;

Expand Down

0 comments on commit 5974664

Please sign in to comment.