Skip to content

Commit c0dfeaa

Browse files
committed
1
1 parent 3c79615 commit c0dfeaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla-rust-wrapper/src/cass_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ 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-
let source = CassErrorSource::CASS_ERROR_SOURCE_SERVER.0 as u32;
137+
let source = CassErrorSource::CASS_ERROR_SOURCE_SERVER.0;
138138
let code = (source << 24) | (*num as u32);
139139
CassError(code as _)
140140
}

0 commit comments

Comments
 (0)