浏览代码

Merge pull request #8 from Kritzefitz/loosen-memory-regions-lifetime

Loosen lifetime on `Memory.regions`
Wesley Norris 1 年之前
父节点
当前提交
58b94fa459
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/standard_nodes.rs

+ 2 - 2
src/standard_nodes.rs

@@ -286,9 +286,9 @@ pub struct Memory<'b, 'a: 'b> {
     pub(crate) node: FdtNode<'b, 'a>,
 }
 
-impl Memory<'_, '_> {
+impl<'a> Memory<'_, 'a> {
     /// Returns an iterator over all of the available memory regions
-    pub fn regions(&self) -> impl Iterator<Item = MemoryRegion> + '_ {
+    pub fn regions(&self) -> impl Iterator<Item = MemoryRegion> + 'a {
         self.node.reg().unwrap()
     }