diff --git a/services/graphics-server/src/lib.rs b/services/graphics-server/src/lib.rs index 0ae56fe6e..bfdbbc080 100644 --- a/services/graphics-server/src/lib.rs +++ b/services/graphics-server/src/lib.rs @@ -16,7 +16,7 @@ pub struct Gfx { conn: xous::CID, } impl Gfx { - pub fn new(&xns: xous_names::XousNames) -> Result { + pub fn new(xns: &xous_names::XousNames) -> Result { let conn = xns.request_connection_blocking(api::SERVER_NAME_GFX).expect("Can't connect to GFX"); Ok(Gfx { conn, diff --git a/services/trng/src/lib.rs b/services/trng/src/lib.rs index 8b7ca26db..42d164a5f 100644 --- a/services/trng/src/lib.rs +++ b/services/trng/src/lib.rs @@ -8,7 +8,7 @@ pub struct Trng { conn: CID, } impl Trng { - pub fn new(&xns: xous_names::XousNames) -> Result { + pub fn new(xns: &xous_names::XousNames) -> Result { let conn = xns.request_connection_blocking(api::SERVER_NAME_TRNG).expect("Can't connect to TRNG server"); Ok(Trng { conn