diff --git a/README.md b/README.md index 85fd676..79b4cc8 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,11 @@ async fn main() -> Result<()> { // Get and print out version information of OBS and obs-websocket. let version = client.general().version().await?; - println!("{:#?}", version); + println!("{version:#?}"); // Get a list of available scenes and print them out. let scene_list = client.scenes().list().await?; - println!("{:#?}", scene_list); + println!("{scene_list:#?}"); Ok(()) } diff --git a/examples/events.rs b/examples/events.rs index a604d93..87b5544 100644 --- a/examples/events.rs +++ b/examples/events.rs @@ -17,7 +17,7 @@ async fn main() -> Result<()> { pin_mut!(events); while let Some(event) = events.next().await { - println!("{:#?}", event); + println!("{event:#?}"); } Ok(()) diff --git a/examples/simple.rs b/examples/simple.rs index f8a15c4..a76d0de 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -13,10 +13,10 @@ async fn main() -> Result<()> { let client = Client::connect("localhost", 4455, env::var("OBS_PASSWORD").ok()).await?; let version = client.general().version().await?; - println!("{:#?}", version); + println!("{version:#?}"); let scene_list = client.scenes().list().await?.scenes; - println!("{:#?}", scene_list); + println!("{scene_list:#?}"); Ok(()) } diff --git a/src/requests/custom/source_settings.rs b/src/requests/custom/source_settings.rs index 58a7337..66ef981 100644 --- a/src/requests/custom/source_settings.rs +++ b/src/requests/custom/source_settings.rs @@ -414,8 +414,8 @@ impl From for String { CustomSize::SixteenToTen => "16:10".to_owned(), CustomSize::FourToThree => "4:3".to_owned(), CustomSize::OneToOne => "1:1".to_owned(), - CustomSize::CustomRatio(w, h) => format!("{}:{}", w, h), - CustomSize::CustomSize(w, h) => format!("{}x{}", w, h), + CustomSize::CustomRatio(w, h) => format!("{w}:{h}"), + CustomSize::CustomSize(w, h) => format!("{w}x{h}"), } } }