Get rusqlite more shippable
This commit is contained in:
parent
6019e4c37b
commit
b06366ebb7
6 changed files with 48 additions and 26 deletions
|
@ -55,7 +55,7 @@ fn main() {
|
|||
let db = app.background().spawn(async move {
|
||||
project::Db::open(&*zed::paths::DB)
|
||||
.log_err()
|
||||
.unwrap_or_else(project::Db::null)
|
||||
.unwrap_or_else(project::Db::open_in_memory())
|
||||
});
|
||||
|
||||
load_embedded_fonts(&app);
|
||||
|
|
|
@ -6,7 +6,7 @@ lazy_static::lazy_static! {
|
|||
pub static ref LOGS_DIR: PathBuf = HOME.join("Library/Logs/Zed");
|
||||
pub static ref LANGUAGES_DIR: PathBuf = HOME.join("Library/Application Support/Zed/languages");
|
||||
pub static ref DB_DIR: PathBuf = HOME.join("Library/Application Support/Zed/db");
|
||||
pub static ref DB: PathBuf = DB_DIR.join("zed.db");
|
||||
pub static ref DB: PathBuf = DB_DIR.join("zed.sqlite");
|
||||
pub static ref SETTINGS: PathBuf = CONFIG_DIR.join("settings.json");
|
||||
pub static ref KEYMAP: PathBuf = CONFIG_DIR.join("keymap.json");
|
||||
pub static ref LAST_USERNAME: PathBuf = CONFIG_DIR.join("last-username.txt");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue