From 09ed932870e244e97b6399b53eb25b37625696e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Thu, 27 Jun 2019 11:18:42 -0700 Subject: [PATCH] misc: add useful (?) comment --- src/content/write.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/write.rs b/src/content/write.rs index 50c1148..3c20ebb 100644 --- a/src/content/write.rs +++ b/src/content/write.rs @@ -32,6 +32,7 @@ impl Writer { let cpath = path::content_path(&self.cache, &sri); DirBuilder::new() .recursive(true) + // Safe unwrap. cpath always has multiple segments .create(cpath.parent().unwrap())?; self.tmpfile.persist(cpath)?; Ok(sri)