Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: Lonng <heng@lonng.org>
  • Loading branch information
lonng committed Jun 26, 2019
1 parent 0f19b22 commit 12f2f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coprocessor/codec/convert.rs
Expand Up @@ -151,7 +151,7 @@ pub fn convert_bytes_to_int(ctx: &mut EvalContext, bytes: &[u8], tp: FieldTypeTp
Ok(val) => convert_int_to_int(ctx, val, tp),
Err(_) => {
ctx.handle_overflow(Error::overflow("BIGINT", &vs))?;
let val = if vs.starts_with("-") {
let val = if vs.starts_with('-') {
integer_signed_lower_bound(tp)
} else {
integer_signed_upper_bound(tp)
Expand Down

0 comments on commit 12f2f86

Please sign in to comment.