Skip to content

Commit

Permalink
Renamed parse_dest to parse_destination
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Nov 15, 2023
1 parent 5e67219 commit 8256e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/agama-cli/src/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub async fn run(subcommand: LogsCommands) -> anyhow::Result<()> {
LogsCommands::Store { verbose, dest } => {
// feed internal options structure by what was received from user
// for now we always use / add defaults if any
let dest = parse_dest(dest)?;
let dest = parse_destination(dest)?;
let options = LogOptions {
verbose,
dest,
Expand All @@ -60,7 +60,7 @@ pub async fn run(subcommand: LogsCommands) -> anyhow::Result<()> {
/// path
/// - if path with a file name then it is used as is for resulting archive, just extension will
/// be appended later on (depends on used compression)
fn parse_dest(dest: Option<PathBuf>) -> Result<PathBuf, io::Error> {
fn parse_destination(dest: Option<PathBuf>) -> Result<PathBuf, io::Error> {
let default = PathBuf::from(DEFAULT_RESULT);
let err = io::Error::new(io::ErrorKind::InvalidInput, "Invalid destination path");

Expand Down

0 comments on commit 8256e83

Please sign in to comment.