Created
May 26, 2015 23:28
-
-
Save anonymous/71e42bb1fe4e247528b5 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
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, | |
} | |
impl Brick{ | |
pub fn as_str(&self) -> &'static str{ | |
let s = self.peer.hostname.clone(); | |
let ret_str = s + ":" + &self.path.to_str().unwrap(); | |
return ret_str.as_str(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment