fix: fix clippy linting part II

This commit is contained in:
Valentin Weber 2025-07-20 12:57:01 +02:00
parent 9caac1bb6e
commit 07a3b5731b
No known key found for this signature in database
GPG key ID: 44797000F143F522

View file

@ -245,7 +245,7 @@ fn write_payload(
.enable_all() .enable_all()
.build()? .build()?
.block_on(async { .block_on(async {
BleDevice::single(device_name.map(|x| x.as_str())) BleDevice::single(device_name.map(String::as_str))
.await? .await?
.write(payload) .write(payload)
.await .await