From 704d6386f7f56e2f758648a46f8205e06f78d304 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 10 Jan 2020 06:58:28 -0800 Subject: [PATCH] dyn trait -> impl trait --- src/login/login.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/login.rs b/src/login/login.rs index 9932202..573d5fc 100644 --- a/src/login/login.rs +++ b/src/login/login.rs @@ -56,7 +56,7 @@ impl SendServerPacket for SendLoginPacket { } -pub fn get_login_status(entity_gateway: &dyn EntityGateway, pkt: &Login) -> Result { +pub fn get_login_status(entity_gateway: &impl EntityGateway, pkt: &Login) -> Result { let username = array_to_utf8(pkt.username).map_err(|_err| AccountStatus::Error)?; let password = array_to_utf8(pkt.password).map_err(|_err| AccountStatus::Error)?; let user = entity_gateway.get_user_by_name(username).ok_or(AccountStatus::InvalidUser)?;