cargo fmt一遍文件

This commit is contained in:
shenjack 2023-03-14 00:07:10 +08:00
parent dd8833d0c6
commit ba9750e265
2 changed files with 50 additions and 53 deletions

View File

@ -6,10 +6,10 @@
* ------------------------------- * -------------------------------
*/ */
mod sr1_render; mod render;
mod simulator; mod simulator;
mod sr1_data; mod sr1_data;
mod render; mod sr1_render;
mod types; mod types;
use pyo3::prelude::*; use pyo3::prelude::*;

View File

@ -6,8 +6,8 @@
* ------------------------------- * -------------------------------
*/ */
use rapier2d_f64::prelude::*;
use pyo3::prelude::*; use pyo3::prelude::*;
use rapier2d_f64::prelude::*;
#[pyfunction] #[pyfunction]
#[pyo3(name = "simluation")] #[pyo3(name = "simluation")]
@ -59,10 +59,7 @@ pub fn simluation() -> PyResult<()> {
); );
let ball_body = &rigid_body_set[ball_body_handle]; let ball_body = &rigid_body_set[ball_body_handle];
println!( println!("Ball altitude: {}", ball_body.translation().y);
"Ball altitude: {}",
ball_body.translation().y
);
} }
Ok(()) Ok(())
} }