Skip to content

Commit

Permalink
paasio: Add PhantomData explanation (#1637)
Browse files Browse the repository at this point in the history
Same as the explanation present in fizzy
  • Loading branch information
nhawkes authored Mar 6, 2023
1 parent 2b717ef commit 90455d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exercises/practice/paasio/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use std::io::{Read, Result, Write};

// the PhantomData instances in this file are just to stop compiler complaints
// about missing generics; feel free to remove them

pub struct ReadStats<R>(::std::marker::PhantomData<R>);

impl<R: Read> ReadStats<R> {
Expand Down

0 comments on commit 90455d2

Please sign in to comment.