lib.rs: Improve comments and other minor cleanups

This commit is contained in:
Tony Arcieri
2019-03-24 12:47:42 -07:00
parent fccbfee2fb
commit a8cd5499a2
2 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -1,4 +1,6 @@
//! Digital signature types and traits
//! Traits which provide generic, object-safe APIs for generating and verifying
//! digital signatures, which provide message authentication using public-key
//! cryptography.
#![no_std]
#![cfg_attr(all(feature = "nightly", not(feature = "std")), feature(alloc))]
@@ -17,7 +19,7 @@
extern crate std;
mod error;
pub(crate) mod prelude;
mod prelude;
mod signature;
pub use crate::{error::Error, signature::Signature};
+3 -3
View File
@@ -1,8 +1,8 @@
use core::fmt::Debug;
use error::Error;
#[allow(unused_imports)]
use prelude::*;
use crate::error::Error;
#[cfg(feature = "alloc")]
use crate::prelude::*;
/// Trait impl'd by concrete types that represent digital signatures
pub trait Signature: AsRef<[u8]> + Debug + Sized {