1
Fork 0
mirror of https://github.com/RGBCube/color.v synced 2025-07-30 17:37:45 +00:00

Fix new_brush_pointer and format

This commit is contained in:
RGBCube 2022-12-03 17:51:32 +03:00
parent 2fcc0b32e7
commit d820ca3501

View file

@ -30,7 +30,9 @@ pub fn new_brush(p BrushParams) Brush {
// This is useful for long-lived brush instances.
pub fn new_brush_pointer(p BrushParams) &Brush {
return &new_brush(p)
return &BrushImpl{
...new_brush(p)
}
}
// Declaration