Skip to content

Instantly share code, notes, and snippets.

@Dr-Emann
Forked from anonymous/playground.rs
Last active Aug 29, 2015
Embed
What would you like to do?
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