Give &strs instead of Strings to Database::process’ callback

This commit is contained in:
Ivan Ukhov
2015-06-08 21:42:34 -04:00
parent daefd7d1be
commit 64aa37f474
4 changed files with 30 additions and 12 deletions

View File

@ -14,7 +14,7 @@ fn workflow() {
use sqlite::State;
macro_rules! pair(
($one:expr, $two:expr) => ((String::from($one), String::from($two)));
($one:expr, $two:expr) => (($one, Some($two)));
);
let (path, _directory) = setup();