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 3c79615 commit c0dfeaaCopy full SHA for c0dfeaa
scylla-rust-wrapper/src/cass_error.rs
@@ -134,7 +134,7 @@ 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
- let source = CassErrorSource::CASS_ERROR_SOURCE_SERVER.0 as u32;
+ let source = CassErrorSource::CASS_ERROR_SOURCE_SERVER.0;
138
let code = (source << 24) | (*num as u32);
139
CassError(code as _)
140
}
0 commit comments