1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-07 16:05:50 +03:00

use io::Result<T> instead of Result<T, io::Error> in bench

Этот коммит содержится в:
rhysd
2023-11-03 23:54:27 +09:00
родитель 06f676014b
Коммит 0b4c5ee137
2 изменённых файлов: 10 добавлений и 9 удалений

Просмотреть файл

@@ -107,6 +107,7 @@ fn random(c: &mut Criterion) {
});
}
// Inserting a long line is slower than multiple short lines into `TextArea`
fn long(c: &mut Criterion) {
c.bench_function("insert::long::1_lorem", |b| {
b.iter(|| black_box(append_long_lorem(1)))