Skip to content

Commit 379e133

Browse files
committed
changed get_interface to return fat pointer
1 parent 2bcdd91 commit 379e133

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mock.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ pub fn MockInterface(comptime InterfaceType: type) type {
511511
return expectation;
512512
}
513513

514-
pub fn get_interface(self: *Self) *InterfaceType {
515-
return &self.interface;
514+
pub fn get_interface(self: *Self) InterfaceType {
515+
return self.interface;
516516
}
517517

518518
pub fn create(allocator: std.mem.Allocator) !*Self {

0 commit comments

Comments
 (0)