diff options
| author | Anthony Rubick <68485672+AnthonyMichaelTDM@users.noreply.github.com> | 2023-07-09 20:07:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-10 11:07:09 +0800 |
| commit | 97fc7de6754c8b5c383d7d5e3f9e26b3bbfb08fb (patch) | |
| tree | c19390877425fa50049761e8ee6bc93f21c46f56 /src/repl/validator.rs | |
| parent | ec51b84290215d11d5045de8baa9b89f2447b1e9 (diff) | |
| download | aichat-97fc7de6754c8b5c383d7d5e3f9e26b3bbfb08fb.tar.gz | |
fix: minor code cleanup and pedantic lints (#134)
Diffstat (limited to 'src/repl/validator.rs')
| -rw-r--r-- | src/repl/validator.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/repl/validator.rs b/src/repl/validator.rs index e1f6e99..d829911 100644 --- a/src/repl/validator.rs +++ b/src/repl/validator.rs @@ -1,6 +1,7 @@ use reedline::{ValidationResult, Validator}; /// A default validator which checks for mismatched quotes and brackets +#[allow(clippy::module_name_repetitions)] pub struct ReplValidator; impl Validator for ReplValidator { @@ -30,7 +31,7 @@ fn incomplete_brackets(line: &str) -> bool { None => match c { '{' | '(' => { balance.push(c); - symbol = Some(c) + symbol = Some(c); } _ => {} }, |
