Closed yue4u closed 1 year ago
Related to #814. This is something we've been trying to find a way to deal with for a long while.
Unfortunately, there isn't a good workaround for the time being. If the warning must be suppressed, you can try calling the method with Object::call
, which does allow you to omit parameters, at the cost of not being statically typed.
Keeping this open as a reference for the method generator redesign.
Thanks for your quick reply!
you can try calling the method with Object::call,
Nice, changing to Object::call
makes a lot of sense to me even with the cost of losing typing as this is the only API I have problem with.
Width == 1.0 does not make the warning.
Thanks for the information! Since it has been a while since this issue was first reported, it's possible that this was fixed upstream, which would explain the change in behavior. For now, I'll proceed to close this issue.
draw_rect
method requireswidth
parameter even when settingfilled
to true which results the following warning being printed.API Interface:
Example: https://github.com/yue4u/zf/blob/7c6b4c68e9ab4129386c06299e265242a605bf4d/crates/zf/src/ui/terminal.rs#L475
I did some search but couldn't find a way to disable this warning. Maybe set the type of width parameter to optional or passing width optionally on the library side can resolve this problem?