Skip to content

Commit a5e7f4a

Browse files
committed
More clippy
1 parent 7c35a3b commit a5e7f4a

File tree

1 file changed

+8
-8
lines changed
  • crates/bevy_text/src/undo_2

1 file changed

+8
-8
lines changed

crates/bevy_text/src/undo_2/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ pub enum SetOrTransition<S, T> {
197197
/// }
198198
/// ```
199199
pub trait IndepStateKey {
200-
/// KeyType
200+
/// stub `KeyType`
201201
type KeyType: PartialEq + Hash;
202-
/// key
202+
/// stub key
203203
fn key(&self) -> Self::KeyType;
204204
}
205205

@@ -220,19 +220,19 @@ pub enum SetTransAction<'a, S: IndepStateKey, T> {
220220
}
221221

222222
impl<T> Action<T> {
223-
/// as_inner
223+
/// stub `as_inner`
224224
pub fn as_inner(&self) -> &T {
225225
match self {
226226
Action::Do(a) | Action::Undo(a) => a,
227227
}
228228
}
229-
/// as_inner_mut
229+
/// stub `as_inner_mut`
230230
pub fn as_inner_mut(&mut self) -> &mut T {
231231
match self {
232232
Action::Do(a) | Action::Undo(a) => a,
233233
}
234234
}
235-
/// into_inner
235+
/// stub `into_inner`
236236
pub fn into_inner(self) -> T {
237237
match self {
238238
Action::Do(a) | Action::Undo(a) => a,
@@ -274,9 +274,9 @@ impl<T> Action<T> {
274274
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
275275
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
276276
pub enum CommandItem<T> {
277-
/// A command typically created by [Commands::push](Commands#method.push)
277+
/// A command typically created by [`Commands::push`](Commands#method.push)
278278
Command(T),
279-
/// Signify that `count` CommandItem previous to this item are undone.
279+
/// Signify that `count` `CommandItem` previous to this item are undone.
280280
///
281281
/// Where `count` refers to this variant field.
282282
Undo(usize),
@@ -1920,7 +1920,7 @@ impl<T> IterRealized<'_, T> {
19201920
/// This same command is accessible by indexing [Commands] at this returned index.
19211921
///
19221922
/// This index can be used to set the first realized command with
1923-
/// [Commands::undo_or_redo_to_index](Commands#method.undo_or_redo_to_index).
1923+
/// [`Commands::undo_or_redo_to_index`](Commands#method.undo_or_redo_to_index).
19241924
pub fn index(&self) -> usize {
19251925
self.current
19261926
}

0 commit comments

Comments
 (0)