From 2fe6aa41c11df934918086ee0540647b23114806 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Sun, 19 Sep 2021 22:16:27 +0200 Subject: [PATCH] Dump RoleIdentifier the right way around --- src/db/access/internal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/access/internal.rs b/src/db/access/internal.rs index e6d399d..5ce0458 100644 --- a/src/db/access/internal.rs +++ b/src/db/access/internal.rs @@ -106,7 +106,7 @@ impl Internal { match r { Ok( (k,v) ) => { let role_name_str = unsafe { std::str::from_utf8_unchecked(k) }; - let role_id = RoleIdentifier::local_from_str(role_name_str.to_string(), "lmdb".to_string()); + let role_id = RoleIdentifier::local_from_str("lmdb".to_string(), role_name_str.to_string()); match flexbuffers::from_slice(v) { Ok(role) => vec.push((role_id, role)), Err(e) => error!(self.log, "Bad format for roleid {}: {}", role_id, e),