-
-
Save Dr-Emann/29da28068c5af0638194 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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