Fix rsbridge build when 1.61 snafu feature enabled

This commit is contained in:
Damien Elmes 2023-06-17 12:44:25 +10:00
parent cf47e4c98d
commit 84b3abab6c
2 changed files with 3 additions and 2 deletions

View file

@ -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]

View file

@ -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"] }