We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0d6fb8 commit 1a1087aCopy full SHA for 1a1087a
1 file changed
src/comments.rs
@@ -849,10 +849,7 @@ CREATE TABLE posts (
849
850
#[test]
851
fn leading_comment_capture_default_is_single_nearest() {
852
- match LeadingCommentCapture::default() {
853
- LeadingCommentCapture::SingleNearest => {}
854
- _ => panic!("Default for LeadingCommentCapture must be SingleNearest"),
855
- }
+ assert_eq!(LeadingCommentCapture::default(), LeadingCommentCapture::SingleNearest);
856
}
857
858
0 commit comments