Skip to content

Commit

Permalink
Apply cargo +stable clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Sep 13, 2024
1 parent 4699952 commit ca77021
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-quic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl LocatorInspector for QuicLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-serial/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl LocatorInspector for SerialLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-tcp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl LocatorInspector for TcpLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-tls/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl LocatorInspector for TlsLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-udp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl LocatorInspector for UdpLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-unixpipe/src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl LocatorInspector for UnixPipeLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-unixsock_stream/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl LocatorInspector for UnixSockStreamLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-vsock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl LocatorInspector for VsockLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down
2 changes: 1 addition & 1 deletion io/zenoh-links/zenoh-link-ws/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl LocatorInspector for WsLocatorInspector {
if let Some(reliability) = locator
.metadata()
.get(Metadata::RELIABILITY)
.map(|r| Reliability::from_str(r))
.map(Reliability::from_str)
.transpose()?
{
Ok(reliability == Reliability::Reliable)
Expand Down

0 comments on commit ca77021

Please sign in to comment.