Skip to content

Commit b3b98f4

Browse files
committed
Tweak docs/comments
1 parent e420ee9 commit b3b98f4

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ OPTIONS:
9191
See <https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-export> for more.
9292

9393
--text
94-
Generate coverage report in text format
94+
Generate coverage report in "text" format
9595

9696
If --output-path or --output-dir is not specified, the report will be printed to stdout.
9797

docs/cargo-llvm-cov-report.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ OPTIONS:
3838
See <https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-export> for more.
3939

4040
--text
41-
Generate coverage report in text format
41+
Generate coverage report in "text" format
4242

4343
If --output-path or --output-dir is not specified, the report will be printed to stdout.
4444

docs/cargo-llvm-cov-run.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OPTIONS:
4242
See <https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-export> for more.
4343

4444
--text
45-
Generate coverage report in text format
45+
Generate coverage report in "text" format
4646

4747
If --output-path or --output-dir is not specified, the report will be printed to stdout.
4848

docs/cargo-llvm-cov-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ OPTIONS:
4747
See <https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-export> for more.
4848

4949
--text
50-
Generate coverage report in text format
50+
Generate coverage report in "text" format
5151

5252
If --output-path or --output-dir is not specified, the report will be printed to stdout.
5353

docs/cargo-llvm-cov.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OPTIONS:
4242
See <https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-export> for more.
4343

4444
--text
45-
Generate coverage report in text format
45+
Generate coverage report in "text" format
4646

4747
If --output-path or --output-dir is not specified, the report will be printed to stdout.
4848

src/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn clean_trybuild_artifacts(ws: &Workspace, pkg_ids: &[PackageId], verbose: bool
164164

165165
fn rm_rf(path: impl AsRef<Path>, verbose: bool) -> Result<()> {
166166
let path = path.as_ref();
167-
#[allow(clippy::disallowed_methods)] // std::fs is okay here since we ignore error contents
167+
#[allow(clippy::disallowed_methods)] // Using std::fs instead of fs-err is okay here since we ignore error contents
168168
let m = std::fs::symlink_metadata(path);
169169
if m.as_ref().map(fs::Metadata::is_dir).unwrap_or(false) {
170170
if verbose {

src/cli.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ pub(crate) struct LlvmCovOptions {
286286
/// See <https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-export> for more.
287287
pub(crate) codecov: bool,
288288

289-
/// Generate coverage report in text format
289+
/// Generate coverage report in "text" format
290290
///
291291
/// If --output-path or --output-dir is not specified, the report will be printed to stdout.
292292
///
@@ -851,8 +851,9 @@ impl Args {
851851
let _guard = term::warn::ignore();
852852
warn!(
853853
"note that `{val}` is treated as test filter instead of subcommand \
854-
because `cargo llvm-cov nextest` internally calls `cargo nextest \
855-
run`; if you want to use `nextest archive`, please use `cargo llvm-cov nextest-archive`"
854+
because `cargo llvm-cov nextest` internally calls \
855+
`cargo nextest run`; if you want to use `nextest archive`, \
856+
please use `cargo llvm-cov nextest-archive`"
856857
);
857858
}
858859
cargo_args.push(val);

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ fn object_files(cx: &Context) -> Result<Vec<OsString>> {
760760
{
761761
return false;
762762
}
763-
#[allow(clippy::disallowed_methods)] // std::fs is okay here since we ignore error contents
763+
#[allow(clippy::disallowed_methods)] // Using std::fs instead of fs-err is okay here since we ignore error contents
764764
let Ok(metadata) = std::fs::metadata(f) else {
765765
return false;
766766
};

0 commit comments

Comments
 (0)