mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix CI lint failures
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use nostr::{nips::nip44, EventBuilder, JsonUtil, Keys, Kind, Tag, Timestamp, ToBech32};
|
||||
use tauri::Manager;
|
||||
use nostr_compat::{
|
||||
Event as CompatEvent, JsonUtil as CompatJsonUtil, Keys as CompatKeys,
|
||||
PublicKey as CompatPublicKey,
|
||||
};
|
||||
use tauri::Manager;
|
||||
use tauri::State;
|
||||
|
||||
use crate::{
|
||||
@@ -186,10 +186,7 @@ pub fn import_identity(
|
||||
bech32
|
||||
};
|
||||
|
||||
eprintln!(
|
||||
"sprout-desktop: imported identity pubkey {}",
|
||||
pubkey_hex
|
||||
);
|
||||
eprintln!("sprout-desktop: imported identity pubkey {}", pubkey_hex);
|
||||
|
||||
Ok(IdentityInfo {
|
||||
pubkey: pubkey_hex,
|
||||
|
||||
@@ -471,10 +471,7 @@ export async function getNsec(): Promise<string> {
|
||||
|
||||
export async function importIdentity(nsec: string): Promise<Identity> {
|
||||
const raw = await invokeTauri<RawIdentity>("import_identity", { nsec });
|
||||
return {
|
||||
pubkey: raw.pubkey,
|
||||
displayName: raw.display_name,
|
||||
};
|
||||
return { pubkey: raw.pubkey, displayName: raw.display_name };
|
||||
}
|
||||
|
||||
export async function getProfile(): Promise<Profile> {
|
||||
|
||||
Reference in New Issue
Block a user