Pass self as immutable where possible

This commit is contained in:
Isaac Freund
2020-03-29 15:58:04 +02:00
parent 9d0a41c0d2
commit f5304237b5
6 changed files with 15 additions and 15 deletions

View File

@ -76,7 +76,7 @@ pub const Server = struct {
}
/// Free allocated memory and clean up
pub fn destroy(self: *Self) void {
pub fn destroy(self: Self) void {
c.wl_display_destroy_clients(self.wl_display);
c.wl_display_destroy(self.wl_display);
self.root.destroy();