Remove internal uses of marker::NoCopy

This commit is contained in:
Jorge Aparicio
2014-12-13 23:06:44 -05:00
parent 1b97cd338b
commit 556d971f83
11 changed files with 18 additions and 50 deletions

View File

@@ -186,9 +186,8 @@ mod imp {
/// service provider with the `PROV_RSA_FULL` type.
/// - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed
/// This does not block.
pub struct OsRng {
marker: marker::NoCopy
}
#[allow(missing_copy_implementations)]
pub struct OsRng;
#[repr(C)]
struct SecRandom;
@@ -205,7 +204,7 @@ mod imp {
impl OsRng {
/// Create a new `OsRng`.
pub fn new() -> IoResult<OsRng> {
Ok(OsRng {marker: marker::NoCopy} )
Ok(OsRng)
}
}