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

chore: migrate to Rust 2024 edition and bump to v0.9.2 (#12)

* chore: migrate to Rust 2024 edition and bump to v0.9.2

- Bump edition to 2024 and rust-version to 1.85.0
- Replace f64::log10 with usize::ilog10 in num_digits
- Fix clippy lints surfaced by edition bump: repeat_n, derived Default, then_some
- Expand watch-check and watch-test aliases to cover all feature paths (crossterm_0_28, no-backend, tuirs variants, serde, arbitrary)
- Expand CI test and clippy workflows to full 6/8-entry feature matrices including termion on Ubuntu
- Apply rustfmt import reordering from edition 2024 rules

* fix: revert turis linux checks
Этот коммит содержится в:
srothgan
2026-02-19 18:38:50 +01:00
коммит произвёл GitHub
родитель f169a4b18c
Коммит 56f531a73f
25 изменённых файлов: 72 добавлений и 67 удалений

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

@@ -3,7 +3,7 @@ use crossterm_025 as crossterm;
use crossterm::event::{DisableMouseCapture, EnableMouseCapture};
use crossterm::terminal::{
disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen,
EnterAlternateScreen, LeaveAlternateScreen, disable_raw_mode, enable_raw_mode,
};
use std::borrow::Cow;
use std::env;
@@ -12,12 +12,12 @@ use std::fs;
use std::io;
use std::io::{BufRead, Write};
use std::path::PathBuf;
use tui::Terminal;
use tui::backend::CrosstermBackend;
use tui::layout::{Constraint, Direction, Layout};
use tui::style::{Color, Modifier, Style};
use tui::text::{Span, Spans};
use tui::widgets::{Block, Borders, Paragraph};
use tui::Terminal;
use tui_textarea::{CursorMove, Input, Key, TextArea};
macro_rules! error {
@@ -56,11 +56,7 @@ impl SearchBox<'_> {
}
fn height(&self) -> u16 {
if self.open {
3
} else {
0
}
if self.open { 3 } else { 0 }
}
fn input(&mut self, input: Input) -> Option<&'_ str> {