Skip to content

Commit ebc03c9

Browse files
committed
fix: substring search mode, satisfy clippy
1 parent dcda91c commit ebc03c9

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

crates/rnote-engine/src/pens/typewriter/penevents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Typewriter {
4848
GraphemeCursor::new(0, textstroke.text.len(), true)
4949
};
5050

51-
textstroke.check_spelling_refresh_cache(&engine_view.spellcheck);
51+
textstroke.check_spelling_refresh_cache(engine_view.spellcheck);
5252
engine_view.store.update_chrono_to_last(stroke_key);
5353

5454
new_state = TypewriterState::Modifying {

crates/rnote-engine/src/strokes/textstroke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ impl TextStyle {
438438
);
439439

440440
cx.stroke_styled(
441-
&bottom_line,
441+
bottom_line,
442442
&OUTLINE_COLOR,
443443
outline_width,
444444
&piet::StrokeStyle::new().dash_pattern(&[4.0, 2.0]),

crates/rnote-ui/data/ui/settingspanel.ui

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ gets disabled.</property>
399399
<property name="title" translatable="yes">Spellcheck Language</property>
400400
<property name="subtitle" translatable="yes">Disable or choose the language for spellchecking</property>
401401
<property name="enable-search">true</property>
402+
<property name="search-match-mode">substring</property>
402403
<property name="expression">
403404
<lookup type="GtkStringObject" name="string"></lookup>
404405
</property>

crates/rnote-ui/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![warn(missing_debug_implementations)]
2+
#![allow(clippy::field_reassign_with_default)]
23
#![allow(clippy::single_match)]
34
// Turns off console window on Windows, but not when building with dev profile.
45
#![cfg_attr(

0 commit comments

Comments
 (0)