diff --git a/generic/threadshare/tests/udpsrc.rs b/generic/threadshare/tests/udpsrc.rs index 44d7b96c..18c074bc 100644 --- a/generic/threadshare/tests/udpsrc.rs +++ b/generic/threadshare/tests/udpsrc.rs @@ -57,7 +57,7 @@ fn test_push() { let socket = net::UdpSocket::bind("0.0.0.0:0").unwrap(); let ipaddr = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)); - let dest = SocketAddr::new(ipaddr, 5000 as u16); + let dest = SocketAddr::new(ipaddr, 5000u16); for _ in 0..3 { socket.send_to(&buffer, dest).unwrap(); @@ -149,7 +149,7 @@ fn test_socket_reuse() { let socket = net::UdpSocket::bind("0.0.0.0:0").unwrap(); let ipaddr = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)); - let dest = SocketAddr::new(ipaddr, 6000 as u16); + let dest = SocketAddr::new(ipaddr, 6000u16); for _ in 0..3 { socket.send_to(&buffer, dest).unwrap(); diff --git a/video/closedcaption/tests/ccdetect.rs b/video/closedcaption/tests/ccdetect.rs index 97c215c4..9935e869 100644 --- a/video/closedcaption/tests/ccdetect.rs +++ b/video/closedcaption/tests/ccdetect.rs @@ -72,7 +72,7 @@ fn test_have_cc_data_notify() { h.set_sink_caps_str("closedcaption/x-cea-708,format=cc_data"); h.get_element() .unwrap() - .set_property("window", &(500_000_000 as u64)) + .set_property("window", &(500_000_000u64)) .unwrap(); let state = Arc::new(Mutex::new(NotifyState::default()));