Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jun 20, 2024
1 parent 537df0c commit 5be69f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions ribus/src/ffi.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
#![allow(clippy::pedantic)]

#[link(name = "ibus-1.0")]
extern "C" {}
Expand Down
8 changes: 3 additions & 5 deletions vncharset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn add_tone(in_word: &mut String, tone: &ToneMark) {
fn viqr_inner(word: &mut String, state: &mut State, b: u8) {
use vi::editing::add_tone_char;
use State::*;
use Transformation::*;
use Transformation::Ignored ;
word.push(b as char);
match state {
InWord => {
Expand Down Expand Up @@ -116,7 +116,7 @@ fn viqr_inner(word: &mut String, state: &mut State, b: u8) {
word.push(ch);
*state = Finished;
}
_ => {}
Finished => {}
}
}

Expand All @@ -135,9 +135,7 @@ impl<'a> Viqr<'a> {
for &b in self.0 {
viqr_inner(&mut word, &mut state, b);
match state {
InWord => {}
WaitingModifier => {}
Escaping => {}
InWord | WaitingModifier | Escaping => {}
Finished => {
out.push_str(&word);
word.clear();
Expand Down

0 comments on commit 5be69f5

Please sign in to comment.