(fix) abstract is now a reserved word.

This commit is contained in:
Stanislav Panferov
2014-10-10 10:09:26 +04:00
parent a70a12dd89
commit d5e33ca9db
5 changed files with 6 additions and 6 deletions

View File

@@ -42,14 +42,14 @@ pub trait NetworkStream: Stream + Clone + Send {
/// Turn this into an appropriately typed trait object.
#[inline]
fn abstract(self) -> Box<NetworkStream + Send> {
fn dynamic(self) -> Box<NetworkStream + Send> {
box self as Box<NetworkStream + Send>
}
#[doc(hidden)]
#[inline]
// Hack to work around lack of Clone impl for Box<Clone>
fn clone_box(&self) -> Box<NetworkStream + Send> { self.clone().abstract() }
fn clone_box(&self) -> Box<NetworkStream + Send> { self.clone().dynamic() }
}
impl Clone for Box<NetworkStream + Send> {