mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
put the borrow in the right place :-/
This commit is contained in:
parent
da7ace04d4
commit
659b050c0e
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ pub struct Gfx {
|
||||||
conn: xous::CID,
|
conn: xous::CID,
|
||||||
}
|
}
|
||||||
impl Gfx {
|
impl Gfx {
|
||||||
pub fn new(&xns: xous_names::XousNames) -> Result<Self, xous::Error> {
|
pub fn new(xns: &xous_names::XousNames) -> Result<Self, xous::Error> {
|
||||||
let conn = xns.request_connection_blocking(api::SERVER_NAME_GFX).expect("Can't connect to GFX");
|
let conn = xns.request_connection_blocking(api::SERVER_NAME_GFX).expect("Can't connect to GFX");
|
||||||
Ok(Gfx {
|
Ok(Gfx {
|
||||||
conn,
|
conn,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ pub struct Trng {
|
||||||
conn: CID,
|
conn: CID,
|
||||||
}
|
}
|
||||||
impl Trng {
|
impl Trng {
|
||||||
pub fn new(&xns: xous_names::XousNames) -> Result<Self, xous::Error> {
|
pub fn new(xns: &xous_names::XousNames) -> Result<Self, xous::Error> {
|
||||||
let conn = xns.request_connection_blocking(api::SERVER_NAME_TRNG).expect("Can't connect to TRNG server");
|
let conn = xns.request_connection_blocking(api::SERVER_NAME_TRNG).expect("Can't connect to TRNG server");
|
||||||
Ok(Trng {
|
Ok(Trng {
|
||||||
conn
|
conn
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue