Don't return Results from position methods in FoldMap and DisplayMap

This commit is contained in:
Max Brunsfeld
2021-05-20 12:47:08 +02:00
committed by Antonio Scandurra
parent 72b98ad688
commit b3d2a70834
6 changed files with 207 additions and 403 deletions
+1 -1
View File
@@ -569,7 +569,7 @@ impl PaintState {
let column = if x >= 0.0 {
line.index_for_x(x)
.map(|ix| ix as u32)
.unwrap_or(view.line_len(row, app).unwrap())
.unwrap_or(view.line_len(row, app))
} else {
0
};