Skip to content

Commit

Permalink
Style implicit closure
Browse files Browse the repository at this point in the history
  • Loading branch information
quackzar committed Sep 18, 2024
1 parent 9abf6b9 commit edf450e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pycare/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn caring(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
// pyo3_log::init();

// TODO: disable this
use tracing_subscriber::{fmt, EnvFilter};
use tracing_subscriber::EnvFilter;
let filter = EnvFilter::from_default_env();
tracing_subscriber::fmt().with_env_filter(filter).init();

Expand Down
2 changes: 1 addition & 1 deletion pycare/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl Engine {

let engine = builder
.connect_blocking()
.map_err(|e| pyo3::exceptions::PyBrokenPipeError::new_err(e))?
.map_err(pyo3::exceptions::PyBrokenPipeError::new_err)?
.build()
.map_err(|e| pyo3::exceptions::PyValueError::new_err(e.to_string()))?;
Ok(Self(Mutex::new(engine)))
Expand Down

0 comments on commit edf450e

Please sign in to comment.