Get rid of some warnings

This commit is contained in:
Thales Fragoso
2021-05-11 01:34:10 -03:00
parent c183c352c7
commit a130499c9a
6 changed files with 2 additions and 7 deletions

View File

@ -19,13 +19,13 @@ pub enum Error {
}
pub struct Random<T: Instance> {
inner: T,
_inner: T,
}
impl<T: Instance> Random<T> {
pub fn new(inner: impl Unborrow<Target = T>) -> Self {
unborrow!(inner);
let mut random = Self { inner };
let mut random = Self { _inner: inner };
random.reset();
random
}