diff --git a/services/gam/src/main.rs b/services/gam/src/main.rs index 3b442dc21..86cffa37e 100644 --- a/services/gam/src/main.rs +++ b/services/gam/src/main.rs @@ -73,7 +73,7 @@ pub(crate) struct UxContext { /// a token associated with the UxContext, but private to the GAM (not shared with the app). [currently no use for this, just seems like a good idea...] pub gam_token: [u32; 4], /// sets a trust level, 255 is the highest (status bar); 254 is a boot-validated context. Less trusted content canvases default to 127. - pub trust_level: u8, + pub _trust_level: u8, // this value is immediately put into the canvases and not read back, so adding an _ to prevent warnings /// set to true if keyboard vibrate is turned on pub vibe: bool, @@ -162,7 +162,7 @@ impl ContextManager { predictor: registration.predictor, app_token: token, gam_token: [trng.get_u32().unwrap(), trng.get_u32().unwrap(), trng.get_u32().unwrap(), trng.get_u32().unwrap(), ], - trust_level, + _trust_level: trust_level, listener: xous::connect(xous::SID::from_array(registration.listener)).unwrap(), redraw_id: registration.redraw_id, gotinput_id: registration.gotinput_id, @@ -183,7 +183,7 @@ impl ContextManager { predictor: None, app_token: token, gam_token: [trng.get_u32().unwrap(), trng.get_u32().unwrap(), trng.get_u32().unwrap(), trng.get_u32().unwrap(), ], - trust_level, + _trust_level: trust_level, listener: xous::connect(xous::SID::from_array(registration.listener)).unwrap(), redraw_id: registration.redraw_id, gotinput_id: None, @@ -210,7 +210,7 @@ impl ContextManager { predictor: None, app_token: token, gam_token: [trng.get_u32().unwrap(), trng.get_u32().unwrap(), trng.get_u32().unwrap(), trng.get_u32().unwrap(), ], - trust_level, + _trust_level: trust_level, listener: xous::connect(xous::SID::from_array(registration.listener)).unwrap(), redraw_id: registration.redraw_id, gotinput_id: None,