From 3ceff90f989f53f3d7769817c457adc52aed10d1 Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 30 Apr 2022 18:16:11 -0600 Subject: [PATCH] missed fixing these --- src/login/character.rs | 4 ++-- src/login/login.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/login/character.rs b/src/login/character.rs index 595b261..420e933 100644 --- a/src/login/character.rs +++ b/src/login/character.rs @@ -812,7 +812,7 @@ mod test { #[async_trait::async_trait] impl EntityGateway for TestData { - async fn get_user_settings_by_user(&self, user: &UserAccountEntity) -> Result { + async fn get_user_settings_by_user(&mut self, user: &UserAccountEntity) -> Result { Ok(UserSettingsEntity { id: UserSettingsId(0), user_id: user.id, @@ -868,7 +868,7 @@ mod test { #[async_std::test] async fn test_character_create() { - let test_data = InMemoryGateway::default(); + let mut test_data = InMemoryGateway::default(); let mut fake_user = ClientState::new(); fake_user.user = Some(UserAccountEntity { id: UserAccountId(3), diff --git a/src/login/login.rs b/src/login/login.rs index 8e6020f..6d73817 100644 --- a/src/login/login.rs +++ b/src/login/login.rs @@ -211,7 +211,7 @@ mod test { #[async_trait::async_trait] impl EntityGateway for TestData { - async fn get_user_by_name(&self, name: String) -> Result { + async fn get_user_by_name(&mut self, name: String) -> Result { assert!(name == "testuser"); Ok(UserAccountEntity { id: UserAccountId(1), @@ -269,7 +269,7 @@ mod test { #[async_trait::async_trait] impl EntityGateway for TestData { - async fn get_user_by_name(&self, _name: String) -> Result { + async fn get_user_by_name(&mut self, _name: String) -> Result { Err(GatewayError::Error) } } @@ -303,7 +303,7 @@ mod test { #[async_trait::async_trait] impl EntityGateway for TestData { - async fn get_user_by_name(&self, name: String) -> Result { + async fn get_user_by_name(&mut self, name: String) -> Result { assert!(name == "testuser"); Ok(UserAccountEntity { id: UserAccountId(1),