Skip to content

Commit

Permalink
Do not declare Args type and members publish in shell-complete
Browse files Browse the repository at this point in the history
The Args type as used by the shell-complete program does not have to be
declared public for there are no consumers to it. So with this change we
adjust visibility accordingly.
  • Loading branch information
d-e-s-o committed Mar 21, 2021
1 parent 8de96ac commit 26570e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions var/shell-complete.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// shell-complete.rs

// Copyright (C) 2020 The Nitrocli Developers
// Copyright (C) 2020-2021 The Nitrocli Developers
// SPDX-License-Identifier: GPL-3.0-or-later

use std::io;
Expand Down Expand Up @@ -35,10 +35,10 @@ mod nitrocli {
///
/// The script will be emitted to standard output.
#[derive(Debug, structopt::StructOpt)]
pub struct Args {
struct Args {
/// The command for which to generate the bash completion script.
#[structopt(default_value = "nitrocli")]
pub command: String,
command: String,
}

fn generate_bash<W>(command: &str, output: &mut W)
Expand Down

0 comments on commit 26570e1

Please sign in to comment.