From 659b050c0e1bdcb09923dfed1848a207d57d02c1 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 4 Apr 2021 02:17:14 +0800 Subject: [PATCH] put the borrow in the right place :-/ --- services/graphics-server/src/lib.rs | 2 +- services/trng/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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