File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
ytflow/src/plugin/netif/sys Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -213,8 +213,11 @@ mod tests {
213
213
214
214
#[ tokio:: test]
215
215
async fn test_lookup ( ) {
216
- let selector =
217
- NetifSelector :: new ( SelectionMode :: Manual ( "en0" . into ( ) ) , FamilyPreference :: Both ) ;
216
+ let selector = NetifSelector :: new (
217
+ SelectionMode :: Manual ( "en0" . into ( ) ) ,
218
+ FamilyPreference :: Both ,
219
+ |_| None ,
220
+ ) ;
218
221
selector. cached_netif . store ( Arc :: new ( Netif {
219
222
name : "en0" . into ( ) ,
220
223
bsd_name : CString :: from_vec_with_nul ( b"en0\0 " [ ..] . into ( ) ) . unwrap ( ) ,
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ mod tests {
209
209
let selector = NetifSelector :: new (
210
210
SelectionMode :: Manual ( "wlp3s0" . into ( ) ) ,
211
211
FamilyPreference :: Both ,
212
+ |_| None ,
212
213
) ;
213
214
selector. cached_netif . store ( Arc :: new ( Netif {
214
215
name : "wlp3s0" . into ( ) ,
You can’t perform that action at this time.
0 commit comments