Merge pull request #165 from Imberflur/patch-1 #144
GitHub Actions / clippy
succeeded
Aug 2, 2023 in 0s
clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.71.0 (8ede3aae2 2023-07-12)
- cargo 1.71.0 (cfd3bbd8f 2023-06-08)
- clippy 0.1.71 (8ede3aa 2023-07-12)
Annotations
Check warning on line 464 in src/edit/vi.rs
github-actions / clippy
docs for function returning `Result` missing `# Errors` section
warning: docs for function returning `Result` missing `# Errors` section
--> src/edit/vi.rs:460:5
|
460 | / pub fn load_text<P: AsRef<std::path::Path>>(
461 | | &mut self,
462 | | path: P,
463 | | attrs: crate::Attrs,
464 | | ) -> std::io::Result<()> {
| |____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
Check warning on line 40 in src/edit/vi.rs
github-actions / clippy
docs for function returning `Result` missing `# Errors` section
warning: docs for function returning `Result` missing `# Errors` section
--> src/edit/vi.rs:35:5
|
35 | / pub fn load_text<P: AsRef<std::path::Path>>(
36 | | &mut self,
37 | | font_system: &mut FontSystem,
38 | | path: P,
39 | | attrs: crate::Attrs,
40 | | ) -> std::io::Result<()> {
| |____________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
note: the lint level is defined here
--> src/lib.rs:86:9
|
86 | #![warn(clippy::missing_errors_doc)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 93 in src/buffer.rs
github-actions / clippy
this `impl` can be derived
warning: this `impl` can be derived
--> src/buffer.rs:89:1
|
89 | / impl Default for Affinity {
90 | | fn default() -> Self {
91 | | Affinity::Before
92 | | }
93 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it...
|
58 + #[derive(Default)]
59 | pub enum Affinity {
|
help: ...and mark the default variant
|
59 ~ #[default]
60 ~ Before,
|
Check warning on line 67 in src/lib.rs
github-actions / clippy
lint `clippy::integer_arithmetic` has been renamed to `clippy::arithmetic_side_effects`
warning: lint `clippy::integer_arithmetic` has been renamed to `clippy::arithmetic_side_effects`
--> src/lib.rs:67:10
|
67 | #![allow(clippy::integer_arithmetic)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::arithmetic_side_effects`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
Loading