We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80bd71 commit 3cdd3beCopy full SHA for 3cdd3be
scylla-rust-wrapper/src/cass_error.rs
@@ -134,7 +134,9 @@ impl ToCassError for DbError {
134
DbError::AlreadyExists { .. } => CassError::CASS_ERROR_SERVER_ALREADY_EXISTS,
135
DbError::Unprepared { .. } => CassError::CASS_ERROR_SERVER_UNPREPARED,
136
DbError::Other(num) => {
137
- CassError((CassErrorSource::CASS_ERROR_SOURCE_SERVER.0 << 24) | *num as u32)
+ CassError(
138
+ ((CassErrorSource::CASS_ERROR_SOURCE_SERVER.0 as u32) << 24) | (*num as u32),
139
+ )
140
}
141
// TODO: add appropriate error if rate limit reached
142
DbError::RateLimitReached { .. } => CassError::CASS_ERROR_SERVER_UNAVAILABLE,
0 commit comments