From 65d91b122e5420040a821bdc7dd05616976784a6 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 29 Aug 2022 12:30:00 +0100 Subject: [PATCH] Add support for simpler datastore paths --- src/cli/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index f66de819..e7555c5b 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -42,13 +42,13 @@ fn path_valid(v: &str) -> Result<(), String> { if v == "memory" { return Ok(()); } - if v.starts_with("file://") { + if v.starts_with("file:") { return Ok(()); } - if v.starts_with("tikv://") { + if v.starts_with("tikv:") { return Ok(()); } - if v.starts_with("fdb://") { + if v.starts_with("fdb:") { return Ok(()); } Err(String::from(