Merge pull request #547 from dpc/master

Add `impl AsRef<SurfaceRef> for SurfaceRef`
This commit is contained in:
Tony Aldridge
2016-11-05 11:56:14 +00:00
committed by GitHub
+6
View File
@@ -37,6 +37,12 @@ pub struct SurfaceRef {
_raw: ()
}
impl AsRef<SurfaceRef> for SurfaceRef {
fn as_ref(&self) -> &SurfaceRef {
self
}
}
#[test]
fn test_surface_ref_size() {
// `SurfaceRef` must be 0 bytes.