mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-03-26 22:23:14 +00:00
refactor: inline identity record name clone
This commit is contained in:
parent
10a403e6fa
commit
801bf7983d
@ -17,9 +17,8 @@ pub struct IdentityRecord {
|
||||
|
||||
impl From<IdentityRecord> for Identity {
|
||||
fn from(record: IdentityRecord) -> Self {
|
||||
let name = record.name.clone();
|
||||
let secret = PrivateKey::from(record.secret_key);
|
||||
Identity::from_secret(name, secret)
|
||||
Identity::from_secret(record.name.clone(), secret)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user