diff --git a/pylib/rsbridge/lib.rs b/pylib/rsbridge/lib.rs index 62ca2dc0d..5655c330e 100644 --- a/pylib/rsbridge/lib.rs +++ b/pylib/rsbridge/lib.rs @@ -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] diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index ea9eea70f..11be3592c 100644 --- a/rslib/Cargo.toml +++ b/rslib/Cargo.toml @@ -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"] }