Skip to content

Commit cffc9df

Browse files
fixup
1 parent 2e10152 commit cffc9df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

netwatch/src/interfaces/linux.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub async fn default_route() -> Option<DefaultRouteDetails> {
5555
let res = android::default_route().await;
5656

5757
#[cfg(not(target_os = "android"))]
58-
let res = linux::default_route().await;
58+
let res = sane::default_route().await;
5959

6060
res.ok().flatten()
6161
}
@@ -126,7 +126,7 @@ mod android {
126126
}
127127

128128
#[cfg(not(target_os = "android"))]
129-
mod linux {
129+
mod sane {
130130
use n0_future::{Either, StreamExt, TryStream};
131131
use netlink_packet_core::{NetlinkMessage, NLM_F_DUMP, NLM_F_REQUEST};
132132
use netlink_packet_route::{
@@ -286,10 +286,10 @@ mod linux {
286286
#[cfg(test)]
287287
mod tests {
288288
use super::*;
289+
289290
#[tokio::test]
290-
#[cfg(not(target_os = "android"))]
291291
async fn test_default_route_netlink() {
292-
let route = linux::default_route().await.unwrap();
292+
let route = default_route().await.unwrap();
293293
// assert!(route.is_some());
294294
if let Some(route) = route {
295295
assert!(!route.interface_name.is_empty());

0 commit comments

Comments
 (0)