[rust] add `putln` method to NcPlane.

- fix compilation error using older rust version.
- update docs.
pull/1920/head
joseLuís 3 years ago
parent 115b06c386
commit 873a75f77f

@ -347,9 +347,9 @@ impl NcStyleMethods for NcStyle {
NCSTYLE_BLINK,
NCSTYLE_NONE,
];
for s in styles {
if self.has(s) {
v.push(s)
for s in &styles {
if self.has(*s) {
v.push(*s)
}
}
v

Loading…
Cancel
Save