Skip to content

Commit 3540b4c

Browse files
committed
Version bump
1 parent 0142c04 commit 3540b4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "json"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
authors = ["Maciej Hirsz <maciej.hirsz@gmail.com>"]
55
description = "JSON implementation in Rust"
66
repository = "https://github.com/maciejhirsz/json-rust"

src/short.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{ ptr, str, slice, fmt, mem };
1+
use std::{ ptr, str, slice, fmt };
22
use std::ops::Deref;
33

44
pub const MAX_LEN: usize = 30;
@@ -23,7 +23,7 @@ impl Short {
2323
#[inline]
2424
pub unsafe fn from_slice(slice: &str) -> Self {
2525
let mut short = Short {
26-
value: mem::uninitialized(),
26+
value: [0; MAX_LEN],
2727
len: slice.len() as u8,
2828
};
2929

0 commit comments

Comments
 (0)