Files

13 lines
801 B
Plaintext

Compiling mem-cli v0.1.0 (/home/ubuntu/workplace/Poimen/memory/crates/mem-cli)
error[E0599]: no method named `unwrap_or` found for struct `Result` in this scope
--> crates/mem-cli/src/main.rs:456:78
|
456 | let database_url = database_url.unwrap_or_else(|| std::env::var("DATABASE_URL").unwrap_or_else(|_| "postgresql://app:poimen@localhost:5432/memory".to_string()));
| ^^^^^^^^^^^^^^^ method not found in `Result<String, VarError>`
|
= note: the following candidate methods were found:
<alloc::result::Result<T, E> as core::ops::try::Try>::into_ok
<alloc::result::Result<T, E> as core::ops::try::Try>::into_err
error: could not compile `mem-cli` due to 1 previous error