commit 8d6d7b0e4eb7c24705f472627665d9fd758b8902
parent 52fe6e3e3b035a2b9cfd140a019ca102e5c2c0a7
Author: triesap <tyson@radroots.org>
Date: Wed, 4 Mar 2026 17:53:31 +0000
events: run cargo fmt
Diffstat:
24 files changed, 10 insertions(+), 40 deletions(-)
diff --git a/crates/events/src/account.rs b/crates/events/src/account.rs
@@ -1,4 +1,4 @@
-use crate::{kinds::KIND_ACCOUNT_CLAIM as KIND_ACCOUNT_CLAIM_EVENT};
+use crate::kinds::KIND_ACCOUNT_CLAIM as KIND_ACCOUNT_CLAIM_EVENT;
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
@@ -7,7 +7,6 @@ use alloc::string::String;
pub const KIND_ACCOUNT_CLAIM: u32 = KIND_ACCOUNT_CLAIM_EVENT;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/app_data.rs b/crates/events/src/app_data.rs
@@ -1,6 +1,6 @@
#![forbid(unsafe_code)]
-use crate::{kinds::KIND_APP_DATA as KIND_APP_DATA_EVENT};
+use crate::kinds::KIND_APP_DATA as KIND_APP_DATA_EVENT;
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
@@ -9,7 +9,6 @@ use alloc::string::String;
pub const KIND_APP_DATA: u32 = KIND_APP_DATA_EVENT;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/comment.rs b/crates/events/src/comment.rs
@@ -1,12 +1,11 @@
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
-use crate::{RadrootsNostrEventRef};
+use crate::RadrootsNostrEventRef;
#[cfg(not(feature = "std"))]
use alloc::string::String;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/coop.rs b/crates/events/src/coop.rs
@@ -7,7 +7,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/document.rs b/crates/events/src/document.rs
@@ -6,7 +6,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/farm.rs b/crates/events/src/farm.rs
@@ -4,7 +4,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/follow.rs b/crates/events/src/follow.rs
@@ -4,7 +4,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/geochat.rs b/crates/events/src/geochat.rs
@@ -3,11 +3,9 @@
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
-
#[cfg(not(feature = "std"))]
use alloc::string::String;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/gift_wrap.rs b/crates/events/src/gift_wrap.rs
@@ -6,7 +6,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::string::String;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/job_feedback.rs b/crates/events/src/job_feedback.rs
@@ -9,7 +9,6 @@ use crate::{
#[cfg(not(feature = "std"))]
use alloc::string::String;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/job_request.rs b/crates/events/src/job_request.rs
@@ -1,12 +1,11 @@
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
-use crate::{job::JobInputType};
+use crate::job::JobInputType;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/job_result.rs b/crates/events/src/job_result.rs
@@ -1,15 +1,11 @@
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
-use crate::{
- RadrootsNostrEventPtr, job::JobPaymentRequest,
- job_request::RadrootsJobInput,
-};
+use crate::{RadrootsNostrEventPtr, job::JobPaymentRequest, job_request::RadrootsJobInput};
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/list.rs b/crates/events/src/list.rs
@@ -4,7 +4,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/list_set.rs b/crates/events/src/list_set.rs
@@ -1,11 +1,10 @@
-use crate::{list::RadrootsListEntry};
+use crate::list::RadrootsListEntry;
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/listing.rs b/crates/events/src/listing.rs
@@ -11,7 +11,6 @@ use crate::resource_area::RadrootsResourceAreaRef;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/message.rs b/crates/events/src/message.rs
@@ -1,13 +1,12 @@
#![forbid(unsafe_code)]
-use crate::{RadrootsNostrEventPtr};
+use crate::RadrootsNostrEventPtr;
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/message_file.rs b/crates/events/src/message_file.rs
@@ -1,14 +1,13 @@
#![forbid(unsafe_code)]
+use crate::RadrootsNostrEventPtr;
use crate::message::RadrootsMessageRecipient;
-use crate::{RadrootsNostrEventPtr};
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/plot.rs b/crates/events/src/plot.rs
@@ -1,13 +1,10 @@
-use crate::{
- farm::{RadrootsFarmRef, RadrootsGcsLocation},
-};
+use crate::farm::{RadrootsFarmRef, RadrootsGcsLocation};
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/post.rs b/crates/events/src/post.rs
@@ -4,7 +4,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::string::String;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/profile.rs b/crates/events/src/profile.rs
@@ -45,7 +45,6 @@ pub fn radroots_profile_type_from_tag_value(value: &str) -> Option<RadrootsProfi
}
}
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/reaction.rs b/crates/events/src/reaction.rs
@@ -1,11 +1,10 @@
-use crate::{RadrootsNostrEventRef};
+use crate::RadrootsNostrEventRef;
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::string::String;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/resource_area.rs b/crates/events/src/resource_area.rs
@@ -7,7 +7,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/resource_cap.rs b/crates/events/src/resource_cap.rs
@@ -9,7 +9,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
diff --git a/crates/events/src/seal.rs b/crates/events/src/seal.rs
@@ -6,7 +6,6 @@ use ts_rs::TS;
#[cfg(not(feature = "std"))]
use alloc::string::String;
-
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]