Skip to content

Commit 90455d2

Browse files
authored
paasio: Add PhantomData explanation (#1637)
Same as the explanation present in fizzy
1 parent 2b717ef commit 90455d2

File tree

1 file changed

+3
-0
lines changed
  • exercises/practice/paasio/src

1 file changed

+3
-0
lines changed

exercises/practice/paasio/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
use std::io::{Read, Result, Write};
22

3+
// the PhantomData instances in this file are just to stop compiler complaints
4+
// about missing generics; feel free to remove them
5+
36
pub struct ReadStats<R>(::std::marker::PhantomData<R>);
47

58
impl<R: Read> ReadStats<R> {

0 commit comments

Comments
 (0)