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:
parent
2fcc0b32e7
commit
d820ca3501
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue