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:
parent
4d581722a1
commit
047520ef9f
|
@ -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"
|
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue