1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-24 10:06:05 +02:00

Move to uuid 0.2

This commit is contained in:
Elisabeth Henry 2016-04-14 15:23:38 +02:00
parent 4d581722a1
commit 047520ef9f
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ pulldown-cmark = "0.0.7"
yaml-rust = "0.3"
mustache = "0.7"
chrono = "0.2"
uuid = "0.1"
uuid = { version = "0.2", features = ["v4"] }
clap = "2"
walkdir = "0.1"
rustc-serialize = "0.3"

View File

@ -218,7 +218,7 @@ impl<'a> EpubRenderer<'a> {
let date = chrono::UTC::now().format("%Y-%m-%dT%H:%M:%SZ");
// uuid
let uuid = uuid::Uuid::new_v4().to_urn_string();
let uuid = uuid::Uuid::new_v4().urn().to_string();
let mut items = String::new();
let mut itemrefs = String::new();

View File

@ -38,7 +38,7 @@ impl Zipper {
/// inner_dirs: a vec of inner directory to create in this directory
pub fn new(path: &str) -> Result<Zipper> {
let uuid = uuid::Uuid::new_v4();
let zipper_path = Path::new(path).join(uuid.to_simple_string());
let zipper_path = Path::new(path).join(uuid.simple().to_string());
try!(DirBuilder::new()
.recursive(true)