where possible, pass slices instead of &Vec or &String (clippy::ptr_arg)
This commit is contained in:
parent
b9c403be11
commit
bdc9291ed9
13 changed files with 21 additions and 27 deletions
|
@ -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") }
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue