Skip to content

Commit 02c6297

Browse files
committed
Resolve warnings
1 parent cbe6860 commit 02c6297

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/socket/dhcpv4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ impl<'a> Socket<'a> {
742742
///
743743
/// The socket has an internal "configuration changed" flag. If
744744
/// set, this function returns the configuration and resets the flag.
745-
pub fn poll(&mut self) -> Option<Event> {
745+
pub fn poll(&mut self) -> Option<Event<'_>> {
746746
if !self.config_changed {
747747
None
748748
} else if let ClientState::Renewing(state) = &self.state {

src/storage/assembler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl Assembler {
327327
/// |--- 100 ---|--- 200 ---|--- 100 ---|
328328
///
329329
/// An offset of 1500 would return the ranges: ``(1500, 1600), (1800, 1900)``
330-
pub fn iter_data(&self, first_offset: usize) -> AssemblerIter {
330+
pub fn iter_data(&self, first_offset: usize) -> AssemblerIter<'_> {
331331
AssemblerIter::new(self, first_offset)
332332
}
333333
}

src/wire/sixlowpan/iphc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl<T: AsRef<[u8]>> Packet<T> {
218218
}
219219

220220
/// Return the Source Address.
221-
pub fn src_addr(&self) -> Result<UnresolvedAddress> {
221+
pub fn src_addr(&self) -> Result<UnresolvedAddress<'_>> {
222222
let start = (self.ip_fields_start()
223223
+ self.traffic_class_size()
224224
+ self.next_header_size()
@@ -275,7 +275,7 @@ impl<T: AsRef<[u8]>> Packet<T> {
275275
}
276276

277277
/// Return the Destination Address.
278-
pub fn dst_addr(&self) -> Result<UnresolvedAddress> {
278+
pub fn dst_addr(&self) -> Result<UnresolvedAddress<'_>> {
279279
let start = (self.ip_fields_start()
280280
+ self.traffic_class_size()
281281
+ self.next_header_size()

0 commit comments

Comments
 (0)