Skip to content

Commit 3cdd3be

Browse files
committed
fix windows 2
1 parent b80bd71 commit 3cdd3be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scylla-rust-wrapper/src/cass_error.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ impl ToCassError for DbError {
134134
DbError::AlreadyExists { .. } => CassError::CASS_ERROR_SERVER_ALREADY_EXISTS,
135135
DbError::Unprepared { .. } => CassError::CASS_ERROR_SERVER_UNPREPARED,
136136
DbError::Other(num) => {
137-
CassError((CassErrorSource::CASS_ERROR_SOURCE_SERVER.0 << 24) | *num as u32)
137+
CassError(
138+
((CassErrorSource::CASS_ERROR_SOURCE_SERVER.0 as u32) << 24) | (*num as u32),
139+
)
138140
}
139141
// TODO: add appropriate error if rate limit reached
140142
DbError::RateLimitReached { .. } => CassError::CASS_ERROR_SERVER_UNAVAILABLE,

0 commit comments

Comments
 (0)