Use stable rust

This commit is contained in:
Andras Schmelczer 2026-03-11 21:07:23 +00:00
parent 31993762de
commit c2144a2634
18 changed files with 118 additions and 44 deletions

View file

@ -139,13 +139,19 @@ pub struct TextWithCursorsAndHistory {
#[wasm_bindgen]
impl TextWithCursorsAndHistory {
#[must_use]
pub fn text(&self) -> String { self.text_with_cursors.text() }
pub fn text(&self) -> String {
self.text_with_cursors.text()
}
#[must_use]
pub fn cursors(&self) -> Vec<CursorPosition> { self.text_with_cursors.cursors() }
pub fn cursors(&self) -> Vec<CursorPosition> {
self.text_with_cursors.cursors()
}
#[must_use]
pub fn history(&self) -> Vec<SpanWithHistory> { self.history.clone() }
pub fn history(&self) -> Vec<SpanWithHistory> {
self.history.clone()
}
}
/// Returns the UTF8 parsed string if it's a text, or `None` if it's likely