Skip to content

Commit

Permalink
refactor(cli): Clarify role of RustDocCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 18, 2022
1 parent 97024bf commit 4b84e9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/dump.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct RustDoc {
pub struct RustDocCommand {
deps: bool,
silence: bool,
}

impl RustDoc {
impl RustDocCommand {
pub fn new() -> Self {
Self {
deps: false,
Expand Down Expand Up @@ -98,7 +98,7 @@ impl RustDoc {
}
}

impl Default for RustDoc {
impl Default for RustDocCommand {
fn default() -> Self {
Self::new()
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn main() -> anyhow::Result<()> {
} else {
unreachable!("a member of the `baseline` group must be present");
};
let rustdoc = dump::RustDoc::new().deps(false).silence(false);
let rustdoc = dump::RustDocCommand::new().deps(false).silence(false);

let rustdoc_paths =
if let Some(current_rustdoc_path) = args.current_rustdoc_path.as_deref() {
Expand Down

0 comments on commit 4b84e9c

Please # to comment.