We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c0ade5 commit c361122Copy full SHA for c361122
src/cli/common.rs
@@ -378,11 +378,11 @@ where
378
Ok(utils::ExitCode(0))
379
}
380
381
-/// Iterates over pairs representing the name of a target or component and a
382
-/// boolean value indicating whether it is installed or not.
383
-/// The boolean value is needed to determine whether to print "(installed)"
384
-/// next to the target/component name."
385
-pub(super) fn list_items<'a>(
+/// Print a list of items (targets or components) to stdout.
+///
+/// `items` represents the list of items, with the name and a boolean
+/// to represent whether the item is currently installed.
+pub(super) fn list_items(
386
items: impl Iterator<Item = (impl Display, bool)>,
387
installed_only: bool,
388
quiet: bool,
0 commit comments