more warnings cleared
This commit is contained in:
@@ -5,20 +5,12 @@ use super::engine::SyntectEngine;
|
||||
use crate::textarea::state::TextAreaState;
|
||||
|
||||
// Remove Debug derive since TextAreaState doesn't implement Debug
|
||||
#[derive(Default)]
|
||||
pub struct TextAreaSyntaxState {
|
||||
pub textarea: TextAreaState,
|
||||
pub engine: SyntectEngine,
|
||||
}
|
||||
|
||||
impl Default for TextAreaSyntaxState {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
textarea: TextAreaState::default(),
|
||||
engine: SyntectEngine::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl TextAreaSyntaxState {
|
||||
pub fn from_text<S: Into<String>>(text: S) -> Self {
|
||||
let mut s = Self::default();
|
||||
|
||||
Reference in New Issue
Block a user