Make execute and statement take immutable self

This commit is contained in:
Ivan Ukhov
2015-06-01 16:27:09 -04:00
parent c5c87066e9
commit 0e6ee0c10d
6 changed files with 10 additions and 10 deletions

View File

@ -18,7 +18,7 @@ fn workflow() {
);
let (path, _directory) = setup();
let mut database = ok!(sqlite::open(&path));
let database = ok!(sqlite::open(&path));
let sql = r#"CREATE TABLE `users` (id INTEGER, name VARCHAR(255), age REAL);"#;
ok!(database.execute(sql, None));
@ -58,7 +58,7 @@ fn workflow() {
#[test]
fn failure() {
let (path, _directory) = setup();
let mut database = ok!(sqlite::open(&path));
let database = ok!(sqlite::open(&path));
match database.execute(":)", None) {
Err(error) => assert_eq!(error.message, Some(String::from(r#"unrecognized token: ":""#))),
_ => assert!(false),