Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: ["1.64.0", stable]
rust: ["1.71.0", stable]
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
if: ${{ matrix.os == 'macos-latest' && matrix.rust == '1.64.0' }}
if: ${{ matrix.os == 'macos-latest' && matrix.rust == '1.71.0' }}
with:
xcode-version: latest-stable
- uses: dtolnay/rust-toolchain@stable
if: ${{ matrix.rust == 'stable' }}
- uses: dtolnay/rust-toolchain@1.64.0
if: ${{ matrix.rust == '1.64.0' }}
- uses: dtolnay/rust-toolchain@1.71.0
if: ${{ matrix.rust == '1.71.0' }}
- name: Build
run: cargo build
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"
libc = "0.2"

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.59.0"
version = "0.61.2"
features = [
"Win32_Foundation",
"Win32_System_IO",
Expand Down
8 changes: 4 additions & 4 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ impl IpAdapterAddresses {
}
}

pub fn prefixes(&self) -> PrefixesIterator {
pub fn prefixes(&self) -> PrefixesIterator<'_> {
PrefixesIterator {
_head: unsafe { &*self.0 },
next: unsafe { (*self.0).FirstPrefix },
}
}

pub fn unicast_addresses(&self) -> UnicastAddressesIterator {
pub fn unicast_addresses(&self) -> UnicastAddressesIterator<'_> {
UnicastAddressesIterator {
_head: unsafe { &*self.0 },
next: unsafe { (*self.0).FirstUnicastAddress },
Expand Down Expand Up @@ -132,7 +132,7 @@ impl IfAddrs {
})
}

pub fn iter(&self) -> IfAddrsIterator {
pub fn iter(&self) -> IfAddrsIterator<'_> {
IfAddrsIterator {
_head: self,
next: self.inner.0,
Expand Down Expand Up @@ -256,7 +256,7 @@ impl WindowsIfChangeNotifier {
AF_UNSPEC,
Some(if_change_callback),
ret.tx as *const c_void,
0,
false,
&mut ret.handle,
)
};
Expand Down
Loading