@@ -889,9 +889,8 @@ fn process_output(
889
889
}
890
890
Ok ( result) if result != available_frames => {
891
891
let description = format ! (
892
- "unexpected number of frames written: expected {}, \
893
- result {} (this should never happen)",
894
- available_frames, result,
892
+ "unexpected number of frames written: expected {available_frames}, \
893
+ result {result} (this should never happen)"
895
894
) ;
896
895
error_callback ( BackendSpecificError { description } . into ( ) ) ;
897
896
continue ;
@@ -941,7 +940,7 @@ fn stream_timestamp(
941
940
// Adapted from `timestamp2ns` here:
942
941
// https://fossies.org/linux/alsa-lib/test/audio_time.c
943
942
fn timespec_to_nanos ( ts : libc:: timespec ) -> i64 {
944
- ts. tv_sec as i64 * 1_000_000_000 + ts. tv_nsec as i64
943
+ ( ts. tv_sec * 1_000_000_000 + ts. tv_nsec ) . into ( )
945
944
}
946
945
947
946
// Adapted from `timediff` here:
@@ -1099,8 +1098,7 @@ fn set_hw_params_from_format(
1099
1098
sample_format => {
1100
1099
return Err ( BackendSpecificError {
1101
1100
description : format ! (
1102
- "Sample format '{}' is not supported by this backend" ,
1103
- sample_format
1101
+ "Sample format '{sample_format}' is not supported by this backend"
1104
1102
) ,
1105
1103
} )
1106
1104
}
@@ -1124,8 +1122,7 @@ fn set_hw_params_from_format(
1124
1122
sample_format => {
1125
1123
return Err ( BackendSpecificError {
1126
1124
description : format ! (
1127
- "Sample format '{}' is not supported by this backend" ,
1128
- sample_format
1125
+ "Sample format '{sample_format}' is not supported by this backend"
1129
1126
) ,
1130
1127
} )
1131
1128
}
0 commit comments