chore(fmt): reformatage cargo fmt résiduel
Deux reformatages sans changement de comportement (device.rs, web-server/lib.rs), laissés de côté hors périmètre au fil de plusieurs tickets précédents. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@ -464,9 +464,7 @@ mod tests {
|
|||||||
*store.saves.lock().unwrap() = 0;
|
*store.saves.lock().unwrap() = 0;
|
||||||
let use_case = TouchDevice::new(
|
let use_case = TouchDevice::new(
|
||||||
Arc::clone(&store) as Arc<dyn DeviceSessionStore>,
|
Arc::clone(&store) as Arc<dyn DeviceSessionStore>,
|
||||||
Arc::new(FixedClock(
|
Arc::new(FixedClock((1000 + LAST_SEEN_TOUCH_THROTTLE_MS - 1) as i64)),
|
||||||
(1000 + LAST_SEEN_TOUCH_THROTTLE_MS - 1) as i64,
|
|
||||||
)),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
let output = use_case
|
let output = use_case
|
||||||
|
|||||||
@ -584,8 +584,7 @@ impl ServerState {
|
|||||||
|
|
||||||
async fn authenticate_session(&self, token: &str) -> Option<AuthenticatedDevice> {
|
async fn authenticate_session(&self, token: &str) -> Option<AuthenticatedDevice> {
|
||||||
let token_bytes = decode_session_token(token).ok()?;
|
let token_bytes = decode_session_token(token).ok()?;
|
||||||
self
|
self.app
|
||||||
.app
|
|
||||||
.authenticate_session
|
.authenticate_session
|
||||||
.execute(AuthenticateSessionInput { token_bytes })
|
.execute(AuthenticateSessionInput { token_bytes })
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user