Skip to content

Commit 1f105b2

Browse files
committed
chore: cargo-clippy
1 parent 0db127f commit 1f105b2

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

promkit/src/core/text_editor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl TextEditor {
101101
let pos = self.position();
102102
self.0
103103
.contents_mut()
104-
.replace_range(pos..pos + 1, &ch.to_string());
104+
.replace_range(pos..pos + 1, ch.to_string());
105105
self.forward();
106106
}
107107
}

promkit/src/preset/checkbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Checkbox {
2929
/// # Arguments
3030
///
3131
/// * `items` - An iterator over items
32-
/// that implement the `Display` trait, to be used as options.
32+
/// that implement the `Display` trait, to be used as options.
3333
pub fn new<T: Display, I: IntoIterator<Item = T>>(items: I) -> Self {
3434
Self {
3535
title_state: text::State {

promkit/src/preset/listbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Listbox {
2828
/// # Arguments
2929
///
3030
/// * `items` - An iterator over items
31-
/// that implement the `Display` trait, to be used as options.
31+
/// that implement the `Display` trait, to be used as options.
3232
pub fn new<T: Display, I: IntoIterator<Item = T>>(items: I) -> Self {
3333
Self {
3434
title_state: text::State {

promkit/src/preset/query_selector.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ impl QuerySelector {
3737
/// # Arguments
3838
///
3939
/// * `items` - An iterator over items that implement the `Display` trait,
40-
/// to be used as options in the list box.
40+
/// to be used as options in the list box.
4141
/// * `filter` - A function that takes the current input
42-
/// from the text editor and the list of items,
43-
/// returning a filtered list of items to display.
42+
/// from the text editor and the list of items,
43+
/// returning a filtered list of items to display.
4444
pub fn new<T, I>(items: I, filter: render::Filter) -> Self
4545
where
4646
T: Display,

promkit/src/validate.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ impl<T: ?Sized> ValidatorManager<T> {
2525
/// # Arguments
2626
///
2727
/// * `validator` - A function that takes a reference
28-
/// to an input of type `T` and returns a boolean
29-
/// indicating whether the input passes the validation.
28+
/// to an input of type `T` and returns a boolean
29+
/// indicating whether the input passes the validation.
3030
/// * `error_message_generator` - A function that takes a reference
31-
/// to an input of type `T` and returns a `String`
32-
/// that describes the validation error.
31+
/// to an input of type `T` and returns a `String`
32+
/// that describes the validation error.
3333
///
3434
/// # Returns
3535
///
@@ -47,7 +47,7 @@ impl<T: ?Sized> ValidatorManager<T> {
4747
/// # Arguments
4848
///
4949
/// * `input` - A reference
50-
/// to the input of type `T` to be validated.
50+
/// to the input of type `T` to be validated.
5151
///
5252
/// # Returns
5353
///
@@ -63,7 +63,7 @@ impl<T: ?Sized> ValidatorManager<T> {
6363
/// # Arguments
6464
///
6565
/// * `input` - A reference to the input of type `T`
66-
/// for which to generate an error message.
66+
/// for which to generate an error message.
6767
///
6868
/// # Returns
6969
///

0 commit comments

Comments
 (0)