Clean things up a bit

This commit is contained in:
Marc Plano-Lesay 2025-05-02 14:23:12 +10:00
parent a91e243ecc
commit 3275f4890d
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
18 changed files with 572 additions and 249 deletions

View file

@ -12,7 +12,11 @@ pub struct ProcessedMagnets {
#[async_trait]
pub trait Action {
/// Return the name of the action
fn name(&self) -> &str;
fn name() -> &'static str
where
Self: Sized;
fn get_name(&self) -> &'static str;
/// Process all unprocessed magnet links and return the list of processed magnets
async fn process_unprocessed_magnets(