fixed clippy warnings + doc warnings

This commit is contained in:
Dmitry Stepanov
2026-10-08 20:38:08 +03:00
parent 0876f67b04
commit 9ee460d6cd
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ fn doc_comments() {
s.fields_ref(&mut |infos| {
assert_eq!(infos[0].doc, " This is a\n multiline doc comment.\n");
});
assert_eq!(s.type_info_ref().doc_comment, " Struct doc comment.");
assert_eq!(s.type_info_ref().doc_comment, " Struct doc comment.\n");
}
#[test]
+5 -5
View File
@@ -1007,21 +1007,21 @@ pub enum KeyCode {
NumpadMemoryStore,
/// <kbd>M</kbd> Subtract current entry from the value stored in memory.
NumpadMemorySubtract,
/// <kbd>*</kbd> on a keyboard. For use with numpads that provide mathematical
/// operations (<kbd>+</kbd>, <kbd>-</kbd> <kbd>*</kbd> and <kbd>/</kbd>).
/// <kbd>\*</kbd> on a keyboard. For use with numpads that provide mathematical
/// operations (<kbd>+</kbd>, <kbd>-</kbd> <kbd>\*</kbd> and <kbd>/</kbd>).
///
/// Use `NumpadStar` for the <kbd>*</kbd> key on phones and remote controls.
/// Use `NumpadStar` for the <kbd>\*</kbd> key on phones and remote controls.
NumpadMultiply,
/// <kbd>(</kbd> Found on the Microsoft Natural Keyboard.
NumpadParenLeft,
/// <kbd>)</kbd> Found on the Microsoft Natural Keyboard.
NumpadParenRight,
/// <kbd>*</kbd> on a phone or remote control device.
/// <kbd>\*</kbd> on a phone or remote control device.
///
/// This key is typically found below the <kbd>7</kbd> key and to the left of
/// the <kbd>0</kbd> key.
///
/// Use <kbd>"NumpadMultiply"</kbd> for the <kbd>*</kbd> key on
/// Use <kbd>"NumpadMultiply"</kbd> for the <kbd>\*</kbd> key on
/// numeric keypads.
NumpadStar,
/// <kbd>-</kbd>