mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
fix a couple of ftrivial typos (NFC).
This commit is contained in:
parent
fc24fce73f
commit
7f5e17f3f1
3 changed files with 4 additions and 4 deletions
|
@ -432,7 +432,7 @@ fn test_gen_deprecated() {
|
||||||
"should_assert_eq",
|
"should_assert_eq",
|
||||||
"group1",
|
"group1",
|
||||||
"abc",
|
"abc",
|
||||||
Some("has been superseeded by should_assert_eq2"),
|
Some("has been superseded by should_assert_eq2"),
|
||||||
"module_name",
|
"module_name",
|
||||||
),
|
),
|
||||||
Lint::new(
|
Lint::new(
|
||||||
|
@ -447,7 +447,7 @@ fn test_gen_deprecated() {
|
||||||
let expected: Vec<String> = vec![
|
let expected: Vec<String> = vec![
|
||||||
" store.register_removed(",
|
" store.register_removed(",
|
||||||
" \"should_assert_eq\",",
|
" \"should_assert_eq\",",
|
||||||
" \"has been superseeded by should_assert_eq2\",",
|
" \"has been superseded by should_assert_eq2\",",
|
||||||
" );",
|
" );",
|
||||||
" store.register_removed(",
|
" store.register_removed(",
|
||||||
" \"another_deprecated\",",
|
" \"another_deprecated\",",
|
||||||
|
|
|
@ -17,7 +17,7 @@ use crate::syntax::source_map::Span;
|
||||||
|
|
||||||
use crate::utils::{snippet_with_applicability, span_lint_and_sugg, SpanlessEq};
|
use crate::utils::{snippet_with_applicability, span_lint_and_sugg, SpanlessEq};
|
||||||
|
|
||||||
/// **What it does:** Checks for double comparions that could be simpified to a single expression.
|
/// **What it does:** Checks for double comparions that could be simplified to a single expression.
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// **Why is this bad?** Readability.
|
/// **Why is this bad?** Readability.
|
||||||
|
|
|
@ -257,7 +257,7 @@ impl EarlyLintPass for Pass {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Checks the arguments of `print[ln]!` and `write[ln]!` calls. It will return a tuple of two
|
/// Checks the arguments of `print[ln]!` and `write[ln]!` calls. It will return a tuple of two
|
||||||
/// options. The first part of the tuple is `format_str` of the macros. The secund part of the tuple
|
/// options. The first part of the tuple is `format_str` of the macros. The second part of the tuple
|
||||||
/// is in the `write[ln]!` case the expression the `format_str` should be written to.
|
/// is in the `write[ln]!` case the expression the `format_str` should be written to.
|
||||||
///
|
///
|
||||||
/// Example:
|
/// Example:
|
||||||
|
|
Loading…
Add table
Reference in a new issue