Add impl AsRef<SurfaceRef> for SurfaceRef

This commit is contained in:
Dawid Ciężarkiewicz
2016-10-22 19:31:53 -07:00
parent f45ef41878
commit 2a3cfbfdf0
+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.