@@ -2764,10 +2764,7 @@ mod tests {
27642764 nostr:: Tag :: parse( [ "p" , & author] ) . unwrap( ) ,
27652765 nostr:: Tag :: parse( [ "h" , "00000000-0000-0000-0000-000000000001" ] ) . unwrap( ) ,
27662766 nostr:: Tag :: parse( [ "p" , & offline_bot] ) . unwrap( ) ,
2767- nostr:: Tag :: custom(
2768- nostr:: TagKind :: Custom ( "mention" . into( ) ) ,
2769- [ & offline_bot] ,
2770- ) ,
2767+ nostr:: Tag :: custom( nostr:: TagKind :: Custom ( "mention" . into( ) ) , [ & offline_bot] ) ,
27712768 ] ) ;
27722769 assert_eq ! (
27732770 crate :: handlers:: event:: explicit_mention_pubkeys_from_tags( & intentional) ,
@@ -2780,9 +2777,7 @@ mod tests {
27802777 let mentioned =
27812778 crate :: handlers:: event:: explicit_mention_pubkeys_from_tags ( & intentional) ;
27822779 assert_eq ! (
2783- crate :: handlers:: event:: select_offline_mentioned_bots(
2784- & mentioned, & bots, & present
2785- ) ,
2780+ crate :: handlers:: event:: select_offline_mentioned_bots( & mentioned, & bots, & present) ,
27862781 vec![ offline_bot]
27872782 ) ;
27882783 }
@@ -2801,15 +2796,15 @@ mod tests {
28012796
28022797 // human p only → not selected (not bot)
28032798 assert ! ( crate :: handlers:: event:: select_offline_mentioned_bots(
2804- & [ human. clone ( ) ] ,
2799+ std :: slice :: from_ref ( & human) ,
28052800 & bots,
28062801 & present
28072802 )
28082803 . is_empty( ) ) ;
28092804
28102805 // online agent → no notice
28112806 assert ! ( crate :: handlers:: event:: select_offline_mentioned_bots(
2812- & [ online_bot. clone ( ) ] ,
2807+ std :: slice :: from_ref ( & online_bot) ,
28132808 & bots,
28142809 & present
28152810 )
@@ -2818,7 +2813,7 @@ mod tests {
28182813 // offline agent → exactly one
28192814 assert_eq ! (
28202815 crate :: handlers:: event:: select_offline_mentioned_bots(
2821- & [ offline_bot. clone ( ) ] ,
2816+ std :: slice :: from_ref ( & offline_bot) ,
28222817 & bots,
28232818 & present
28242819 ) ,
0 commit comments