mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix rsbridge build when 1.61 snafu feature enabled
This commit is contained in:
parent
cf47e4c98d
commit
84b3abab6c
2 changed files with 3 additions and 2 deletions
|
@ -31,7 +31,8 @@ fn initialize_logging(path: Option<&str>) -> PyResult<()> {
|
|||
#[pyfunction]
|
||||
fn syncserver() -> PyResult<()> {
|
||||
set_global_logger(None).unwrap();
|
||||
SimpleServer::run().map_err(|e| PyException::new_err(format!("{e:?}")))
|
||||
let err = SimpleServer::run();
|
||||
Err(PyException::new_err(err.to_string()))
|
||||
}
|
||||
|
||||
#[pyfunction]
|
||||
|
|
|
@ -93,7 +93,7 @@ serde_json = "1.0.95"
|
|||
serde_repr = "0.1.12"
|
||||
serde_tuple = "0.5.0"
|
||||
sha1 = "0.10.5"
|
||||
snafu = { version = "0.7.4", features = ["backtraces"] }
|
||||
snafu = { version = "0.7.4", features = ["backtraces", "rust_1_61"] }
|
||||
strum = { version = "0.24.1", features = ["derive"] }
|
||||
tempfile = "3.5.0"
|
||||
tokio = { version = "1.27", features = ["fs", "rt-multi-thread", "macros", "signal"] }
|
||||
|
|
Loading…
Reference in a new issue