mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
Use typed integer literals instead of casting
This commit is contained in:
parent
7e1181ab84
commit
38ecd43074
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue