From 84bab9175e9381cc52030b7d6fb6ceefbc9c794a Mon Sep 17 00:00:00 2001 From: "Spencer C. Imbleau" Date: Thu, 28 Mar 2024 00:18:55 -0400 Subject: [PATCH] refactor: fmt --- examples/error_handling.rs | 32 ++++++++------------------------ examples/simple.rs | 27 +++++++-------------------- src/data_types.rs | 5 +---- src/lib.rs | 3 +-- src/systems.rs | 14 ++++---------- 5 files changed, 21 insertions(+), 60 deletions(-) diff --git a/examples/error_handling.rs b/examples/error_handling.rs index 561bef6..9eda6ea 100644 --- a/examples/error_handling.rs +++ b/examples/error_handling.rs @@ -3,8 +3,8 @@ use bevy::{ prelude::*, }; use bevy_key_rotation::{ - AuthProvider, KeyRotationPlugin, KeyRotationSettings, Keystore, - KeystoreState, StartKeyRotationExt, TokenRotationError, + AuthProvider, KeyRotationPlugin, KeyRotationSettings, Keystore, KeystoreState, + StartKeyRotationExt, TokenRotationError, }; use std::sync::Arc; @@ -29,10 +29,7 @@ impl AuthProvider for MyAuthProvider { + bevy_key_rotation::Duration::from_secs(60), }) } - async fn refresh( - &self, - _keystore: Keystore, - ) -> Result { + async fn refresh(&self, _keystore: Keystore) -> Result { #[derive(thiserror::Error, Default, Debug)] #[error("This fails on purpose!")] struct MyError; @@ -40,11 +37,7 @@ impl AuthProvider for MyAuthProvider { } } -fn status_check( - time: Res