diff options
Diffstat (limited to 'cli/http_cache.rs')
-rw-r--r-- | cli/http_cache.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/http_cache.rs b/cli/http_cache.rs index 2771cb763..2a9882376 100644 --- a/cli/http_cache.rs +++ b/cli/http_cache.rs @@ -103,7 +103,10 @@ impl Metadata { impl HttpCache { /// Returns a new instance. + /// + /// `location` must be an absolute path. pub fn new(location: &Path) -> Self { + assert!(location.is_absolute()); Self { location: location.to_owned(), } |