diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-30 12:59:07 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-30 13:11:52 +0100 |
| commit | bdc9291ed9dd0501a0d25a87463212ad5ec5d87a (patch) | |
| tree | 225a94078830e2dd9421e4eec41ad762ece62a57 /compiler/rustc_driver/src | |
| parent | b9c403be11bef38638b38012be80444ad3f09dde (diff) | |
where possible, pass slices instead of &Vec or &String (clippy::ptr_arg)
Diffstat (limited to 'compiler/rustc_driver/src')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index b3466f49b9f..d57ab2433ad 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -603,7 +603,7 @@ fn handle_explain(registry: Registry, code: &str, output: ErrorOutputType) { } } -fn show_content_with_pager(content: &String) { +fn show_content_with_pager(content: &str) { let pager_name = env::var_os("PAGER").unwrap_or_else(|| { if cfg!(windows) { OsString::from("more.com") } else { OsString::from("less") } }); |
