@@ -130,6 +130,9 @@ pub enum CqlRequestSerializationError {
130130/// server response fails.
131131#[ non_exhaustive]
132132#[ derive( Error , Debug , Clone ) ]
133+ // Check triggers because all variants begin with "Cql".
134+ // TODO(2.0): Remove the "Cql" prefix from variants.
135+ #[ expect( clippy:: enum_variant_names) ]
133136pub enum CqlResponseParseError {
134137 #[ error( "Failed to deserialize ERROR response: {0}" ) ]
135138 CqlErrorParseError ( #[ from] CqlErrorParseError ) ,
@@ -313,6 +316,9 @@ pub enum PreparedParseError {
313316/// - paging state response
314317#[ non_exhaustive]
315318#[ derive( Debug , Error , Clone ) ]
319+ // Check triggers because all variants end with "ParseError".
320+ // TODO(2.0): Remove the "ParseError" postfix from variants.
321+ #[ expect( clippy:: enum_variant_names) ]
316322pub enum RawRowsAndPagingStateResponseParseError {
317323 /// Failed to parse metadata flags.
318324 #[ error( "Malformed metadata flags: {0}" ) ]
@@ -331,6 +337,9 @@ pub enum RawRowsAndPagingStateResponseParseError {
331337/// of statement's prepared metadata failed.
332338#[ non_exhaustive]
333339#[ derive( Error , Debug , Clone ) ]
340+ // Check triggers because all variants end with "ParseError".
341+ // TODO(2.0): Remove the "ParseError" postfix from variants.
342+ #[ expect( clippy:: enum_variant_names) ]
334343pub enum PreparedMetadataParseError {
335344 /// Failed to parse metadata flags.
336345 #[ error( "Malformed metadata flags: {0}" ) ]
@@ -375,6 +384,9 @@ pub enum ResultMetadataAndRowsCountParseError {
375384/// of result metadata failed.
376385#[ non_exhaustive]
377386#[ derive( Error , Debug , Clone ) ]
387+ // Check triggers because all variants end with "ParseError".
388+ // TODO(2.0): Remove the "ParseError" postfix from variants.
389+ #[ expect( clippy:: enum_variant_names) ]
378390pub enum ResultMetadataParseError {
379391 /// Failed to parse metadata flags.
380392 #[ error( "Malformed metadata flags: {0}" ) ]
@@ -422,6 +434,9 @@ pub struct ColumnSpecParseError {
422434/// of a column specification.
423435#[ non_exhaustive]
424436#[ derive( Error , Debug , Clone ) ]
437+ // Check triggers because all variants end with "ParseError".
438+ // TODO(2.0): Remove the "ParseError" postfix from variants.
439+ #[ expect( clippy:: enum_variant_names) ]
425440pub enum ColumnSpecParseErrorKind {
426441 #[ error( "Invalid table spec: {0}" ) ]
427442 TableSpecParseError ( #[ from] TableSpecParseError ) ,
0 commit comments