cleanup warnings in trng server

This commit is contained in:
bunnie 2021-04-02 01:56:22 +08:00
parent 7210f100f4
commit fe2a464dd2
2 changed files with 2 additions and 5 deletions

View file

@ -1,5 +1,3 @@
use xous::{Message, ScalarMessage};
pub(crate) const SERVER_NAME_TRNG: &str = "_TRNG manager_";
#[allow(dead_code)]

View file

@ -2,18 +2,17 @@
#![cfg_attr(target_os = "none", no_main)]
mod api;
use api::*;
use num_traits::FromPrimitive;
use log::{error, info};
use log::info;
#[cfg(target_os = "none")]
mod implementation {
use utralib::generated::*;
// use crate::api::*;
use log::{/*error,*/ info};
use log::info;
pub struct Trng {
csr: utralib::CSR<u32>,