@@ -15,7 +15,7 @@ fn test_event_enricher_creation() {
1515
1616#[ test]
1717fn test_enrich_adds_timestamp ( ) {
18- let mut enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
18+ let enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
1919 let mut event = SyscallEvent :: new ( 1234 , 1000 , SyscallType :: Execve , Utc :: now ( ) ) ;
2020
2121 enricher. enrich ( & mut event) . expect ( "Failed to enrich" ) ;
@@ -26,7 +26,7 @@ fn test_enrich_adds_timestamp() {
2626
2727#[ test]
2828fn test_enrich_preserves_existing_timestamp ( ) {
29- let mut enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
29+ let enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
3030 let original_timestamp = Utc :: now ( ) ;
3131 let mut event = SyscallEvent :: new ( 1234 , 1000 , SyscallType :: Execve , original_timestamp) ;
3232
@@ -104,7 +104,7 @@ fn test_cgroup_parsing() {
104104
105105#[ test]
106106fn test_process_tree_enrichment ( ) {
107- let mut enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
107+ let enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
108108
109109 // Test that we can get parent PID
110110 let ppid = enricher. get_parent_pid ( 1 ) ; // init process
@@ -116,7 +116,7 @@ fn test_process_tree_enrichment() {
116116
117117#[ test]
118118fn test_process_comm_enrichment ( ) {
119- let mut enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
119+ let enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
120120
121121 // Test that we can get process name
122122 let comm = enricher. get_process_comm ( std:: process:: id ( ) ) ;
@@ -143,7 +143,7 @@ fn test_timestamp_normalization() {
143143
144144#[ test]
145145fn test_enrichment_pipeline ( ) {
146- let mut enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
146+ let enricher = EventEnricher :: new ( ) . expect ( "Failed to create enricher" ) ;
147147 let mut event = SyscallEvent :: new ( 1234 , 1000 , SyscallType :: Execve , Utc :: now ( ) ) ;
148148
149149 // Run full enrichment pipeline
0 commit comments