1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 11:29:37 +00:00

#33 Remove unnecessary unsafe keyword

This commit is contained in:
Benjamin Klum 2022-10-16 23:15:52 +02:00
parent 3fdd452646
commit ddf96c10aa

View File

@ -296,7 +296,7 @@ impl Backend for AvFoundation {
};
let rv = voices
.iter()
.map(|v| unsafe {
.map(|v| {
let id: CFString = unsafe {
CFString::wrap_under_get_rule(msg_send![*v as *const Object, identifier])
};