Skip to content

Commit 5b0d9be

Browse files
committed
rename fields
1 parent cd32400 commit 5b0d9be

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/gpdma.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,8 @@ where
256256
// Hold onto source and destination for the lifetime of the transfer to ensure that any
257257
// user implementations of ReadBuffer and WriteBuffer that are themselves references are held
258258
// for the duration of the transfer and so prevent access to the underlying data.
259-
#[allow(dead_code)]
260-
source: S,
261-
#[allow(dead_code)]
262-
destination: D,
259+
_source: S,
260+
_destination: D,
263261
}
264262

265263
impl<'a, CH, S, D> DmaTransfer<'a, CH, S, D>
@@ -291,8 +289,8 @@ where
291289

292290
Self {
293291
channel,
294-
source,
295-
destination,
292+
_source: source,
293+
_destination: destination,
296294
}
297295
}
298296

0 commit comments

Comments
 (0)