Skip to content

Commit 5ecabb1

Browse files
committed
fix(clippy): v1.93.0 errors
1 parent 2f6924d commit 5ecabb1

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

src/builders/sapi.rs

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ mod test {
544544

545545
assert!(sapi.startup.is_some());
546546
assert_eq!(
547-
sapi.startup.expect("should have startup function") as usize,
548-
test_startup as usize
547+
sapi.startup.expect("should have startup function") as *const () as usize,
548+
test_startup as *const () as usize
549549
);
550550
}
551551

@@ -558,8 +558,8 @@ mod test {
558558

559559
assert!(sapi.shutdown.is_some());
560560
assert_eq!(
561-
sapi.shutdown.expect("should have shutdown function") as usize,
562-
test_shutdown as usize
561+
sapi.shutdown.expect("should have shutdown function") as *const () as usize,
562+
test_shutdown as *const () as usize
563563
);
564564
}
565565

@@ -572,8 +572,8 @@ mod test {
572572

573573
assert!(sapi.activate.is_some());
574574
assert_eq!(
575-
sapi.activate.expect("should have activate function") as usize,
576-
test_activate as usize
575+
sapi.activate.expect("should have activate function") as *const () as usize,
576+
test_activate as *const () as usize
577577
);
578578
}
579579

@@ -586,8 +586,8 @@ mod test {
586586

587587
assert!(sapi.deactivate.is_some());
588588
assert_eq!(
589-
sapi.deactivate.expect("should have deactivate function") as usize,
590-
test_deactivate as usize
589+
sapi.deactivate.expect("should have deactivate function") as *const () as usize,
590+
test_deactivate as *const () as usize
591591
);
592592
}
593593

@@ -600,8 +600,8 @@ mod test {
600600

601601
assert!(sapi.ub_write.is_some());
602602
assert_eq!(
603-
sapi.ub_write.expect("should have ub_write function") as usize,
604-
test_ub_write as usize
603+
sapi.ub_write.expect("should have ub_write function") as *const () as usize,
604+
test_ub_write as *const () as usize
605605
);
606606
}
607607

@@ -614,8 +614,8 @@ mod test {
614614

615615
assert!(sapi.flush.is_some());
616616
assert_eq!(
617-
sapi.flush.expect("should have flush function") as usize,
618-
test_flush as usize
617+
sapi.flush.expect("should have flush function") as *const () as usize,
618+
test_flush as *const () as usize
619619
);
620620
}
621621

@@ -628,8 +628,8 @@ mod test {
628628

629629
assert!(sapi.getenv.is_some());
630630
assert_eq!(
631-
sapi.getenv.expect("should have getenv function") as usize,
632-
test_getenv as usize
631+
sapi.getenv.expect("should have getenv function") as *const () as usize,
632+
test_getenv as *const () as usize
633633
);
634634
}
635635

@@ -646,8 +646,8 @@ mod test {
646646

647647
assert!(sapi.send_header.is_some());
648648
assert_eq!(
649-
sapi.send_header.expect("should have send_header function") as usize,
650-
test_send_header as usize
649+
sapi.send_header.expect("should have send_header function") as *const () as usize,
650+
test_send_header as *const () as usize
651651
);
652652
}
653653

@@ -661,8 +661,8 @@ mod test {
661661
assert!(sapi.send_headers.is_some());
662662
assert_eq!(
663663
sapi.send_headers
664-
.expect("should have send_headers function") as usize,
665-
test_send_headers as usize
664+
.expect("should have send_headers function") as *const () as usize,
665+
test_send_headers as *const () as usize
666666
);
667667
}
668668

@@ -675,8 +675,8 @@ mod test {
675675

676676
assert!(sapi.read_post.is_some());
677677
assert_eq!(
678-
sapi.read_post.expect("should have read_post function") as usize,
679-
test_read_post as usize
678+
sapi.read_post.expect("should have read_post function") as *const () as usize,
679+
test_read_post as *const () as usize
680680
);
681681
}
682682

@@ -690,8 +690,8 @@ mod test {
690690
assert!(sapi.read_cookies.is_some());
691691
assert_eq!(
692692
sapi.read_cookies
693-
.expect("should have read_cookies function") as usize,
694-
test_read_cookies as usize
693+
.expect("should have read_cookies function") as *const () as usize,
694+
test_read_cookies as *const () as usize
695695
);
696696
}
697697

@@ -705,8 +705,9 @@ mod test {
705705
assert!(sapi.register_server_variables.is_some());
706706
assert_eq!(
707707
sapi.register_server_variables
708-
.expect("should have register_server_variables function") as usize,
709-
test_register_server_variables as usize
708+
.expect("should have register_server_variables function") as *const ()
709+
as usize,
710+
test_register_server_variables as *const () as usize
710711
);
711712
}
712713

@@ -719,8 +720,8 @@ mod test {
719720

720721
assert!(sapi.log_message.is_some());
721722
assert_eq!(
722-
sapi.log_message.expect("should have log_message function") as usize,
723-
test_log_message as usize
723+
sapi.log_message.expect("should have log_message function") as *const () as usize,
724+
test_log_message as *const () as usize
724725
);
725726
}
726727

@@ -734,8 +735,8 @@ mod test {
734735
assert!(sapi.get_request_time.is_some());
735736
assert_eq!(
736737
sapi.get_request_time
737-
.expect("should have request_time function") as usize,
738-
test_get_request_time as usize
738+
.expect("should have request_time function") as *const () as usize,
739+
test_get_request_time as *const () as usize
739740
);
740741
}
741742

@@ -749,8 +750,8 @@ mod test {
749750
assert!(sapi.terminate_process.is_some());
750751
assert_eq!(
751752
sapi.terminate_process
752-
.expect("should have terminate_process function") as usize,
753-
test_terminate_process as usize
753+
.expect("should have terminate_process function") as *const () as usize,
754+
test_terminate_process as *const () as usize
754755
);
755756
}
756757

@@ -764,8 +765,8 @@ mod test {
764765
assert!(sapi.get_target_uid.is_some());
765766
assert_eq!(
766767
sapi.get_target_uid
767-
.expect("should have get_target_uid function") as usize,
768-
test_get_target_uid as usize
768+
.expect("should have get_target_uid function") as *const () as usize,
769+
test_get_target_uid as *const () as usize
769770
);
770771
}
771772

@@ -779,8 +780,8 @@ mod test {
779780
assert!(sapi.get_target_gid.is_some());
780781
assert_eq!(
781782
sapi.get_target_gid
782-
.expect("should have get_target_gid function") as usize,
783-
test_get_target_gid as usize
783+
.expect("should have get_target_gid function") as *const () as usize,
784+
test_get_target_gid as *const () as usize
784785
);
785786
}
786787

@@ -795,8 +796,8 @@ mod test {
795796
assert!(sapi.pre_request_init.is_some());
796797
assert_eq!(
797798
sapi.pre_request_init
798-
.expect("should have pre_request_init function") as usize,
799-
test_pre_request_init as usize
799+
.expect("should have pre_request_init function") as *const () as usize,
800+
test_pre_request_init as *const () as usize
800801
);
801802
}
802803

0 commit comments

Comments
 (0)