Skip to content

Instantly share code, notes, and snippets.

@Dr-Emann
Forked from anonymous/playground.rs
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dr-Emann/29da28068c5af0638194 to your computer and use it in GitHub Desktop.
Save Dr-Emann/29da28068c5af0638194 to your computer and use it in GitHub Desktop.
pub struct Brick {
pub peer: Peer,
pub path: Path,
}
use std::fmt;
impl fmt::Display for Brick {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}:{}", self.peer.hostname, self.path.display())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment