Rust: make constants more readable

This commit is contained in:
Alex Kotov 2022-05-30 15:10:32 +03:00 committed by GitHub
parent 68dc376052
commit ae7662d125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -1,11 +1,11 @@
use libc::{c_char, c_int};
pub const UTOA_BUFFER_SIZE: usize = 65;
pub const ITOA_BUFFER_SIZE: usize = 66;
pub const UTOA10_BUFFER_SIZE: usize = 21;
pub const ITOA10_BUFFER_SIZE: usize = 21;
pub const UTOA16_BUFFER_SIZE: usize = 17;
pub const ITOA16_BUFFER_SIZE: usize = 18;
pub const UTOA_BUFFER_SIZE: usize = 64 + 1;
pub const ITOA_BUFFER_SIZE: usize = 65 + 1;
pub const UTOA10_BUFFER_SIZE: usize = 20 + 1;
pub const ITOA10_BUFFER_SIZE: usize = 20 + 1;
pub const UTOA16_BUFFER_SIZE: usize = 16 + 1;
pub const ITOA16_BUFFER_SIZE: usize = 17 + 1;
#[link(name = "kernaux")]
extern "C" {