chore: Bump Rust edition to 2024 (#27800)
Follow-up to https://github.com/zed-industries/zed/pull/27791 Release Notes: - N/A
This commit is contained in:
parent
d50905e000
commit
dc64ec9cc8
802 changed files with 3775 additions and 3662 deletions
|
@ -6,7 +6,7 @@ use std::{
|
|||
ptr,
|
||||
};
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{Result, anyhow};
|
||||
use libsqlite3_sys::*;
|
||||
|
||||
pub struct Connection {
|
||||
|
@ -429,12 +429,16 @@ mod test {
|
|||
fn test_alter_table_syntax() {
|
||||
let connection = Connection::open_memory(Some("test_alter_table_syntax"));
|
||||
|
||||
assert!(connection
|
||||
.sql_has_syntax_error("ALTER TABLE test ADD x TEXT")
|
||||
.is_none());
|
||||
assert!(
|
||||
connection
|
||||
.sql_has_syntax_error("ALTER TABLE test ADD x TEXT")
|
||||
.is_none()
|
||||
);
|
||||
|
||||
assert!(connection
|
||||
.sql_has_syntax_error("ALTER TABLE test AAD x TEXT")
|
||||
.is_some());
|
||||
assert!(
|
||||
connection
|
||||
.sql_has_syntax_error("ALTER TABLE test AAD x TEXT")
|
||||
.is_some()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue