From 004cdf6491f561b31647deb2800a472e2c5cde80 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Wed, 24 Jul 2019 01:27:37 +0000 Subject: [PATCH] Improve punctuation of message, printed by "repl" program This patch changes output of following command (from README.md) $ cargo run --example repl -- /tmp/main.db from First time init: creating tables in ""/tmp/main.db"" [...] Opened ""/tmp/main.db"". to First time init: creating tables in "/tmp/main.db" [...] Opened "/tmp/main.db". Note lack of double quotation mark, which was confusing and could have been interpreted as part of file name. --- src/sql.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql.rs b/src/sql.rs index a619fb736..9971ae00d 100644 --- a/src/sql.rs +++ b/src/sql.rs @@ -340,7 +340,7 @@ fn open( info!( context, 0, - "First time init: creating tables in \"{:?}\".", + "First time init: creating tables in {:?}.", dbfile.as_ref(), ); sql.execute( @@ -816,7 +816,7 @@ fn open( } } - info!(context, 0, "Opened \"{:?}\".", dbfile.as_ref(),); + info!(context, 0, "Opened {:?}.", dbfile.as_ref(),); Ok(()) }