Cleaned up warnings

This commit is contained in:
2025-03-23 17:41:12 -04:00
parent 7f8f5644df
commit 29cd4a69b6
18 changed files with 23 additions and 288 deletions

View File

@@ -59,14 +59,13 @@ impl Hinter for FernReadline {
}
impl Highlighter for FernReadline {
fn highlight<'l>(&self, line: &'l str, pos: usize) -> std::borrow::Cow<'l, str> {
fn highlight<'l>(&self, line: &'l str, _pos: usize) -> std::borrow::Cow<'l, str> {
Cow::Owned(line.to_string())
}
}
impl Validator for FernReadline {
fn validate(&self, ctx: &mut rustyline::validate::ValidationContext) -> rustyline::Result<rustyline::validate::ValidationResult> {
return Ok(ValidationResult::Valid(None));
let mut tokens = vec![];
let tk_stream = LexStream::new(Arc::new(ctx.input().to_string()), LexFlags::empty());
for tk in tk_stream {