diff options
| author | Teddy Wing | 2018-10-23 16:46:22 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-10-23 16:46:22 +0200 | 
| commit | b6a8ce2063140e7224f9f9c94e2591259c9f85c3 (patch) | |
| tree | 1ce5278a16a5896db9cd1ece0e9600a1b1e82ec4 /src | |
| parent | f2e91a47a8ad3fa09cbce780e681000bf0854740 (diff) | |
| download | dome-key-map-b6a8ce2063140e7224f9f9c94e2591259c9f85c3.tar.bz2 | |
trial: Rename `trial_expired()` to `exit_trial_expired()`
Make it clearer that the function exits.
Diffstat (limited to 'src')
| -rw-r--r-- | src/trial.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/trial.rs b/src/trial.rs index 96d4d04..59ff785 100644 --- a/src/trial.rs +++ b/src/trial.rs @@ -34,7 +34,7 @@ fn do_trial() {                              ::std::process::exit(exitcode::IOERR);                          },                      }, -                ErrorKind::Duration(_) => return trial_expired(), +                ErrorKind::Duration(_) => return exit_trial_expired(),                  e => {                      eprintln!("{}", e);                      ::std::process::exit(exitcode::SOFTWARE); @@ -47,14 +47,14 @@ fn do_trial() {          Ok(remaining) => print_trial_days(remaining),          Err(e) => {              match e { -                DurationError::NegativeDuration(_) => trial_expired(), +                DurationError::NegativeDuration(_) => exit_trial_expired(),              }          },      }  }  /// Print an "expired" message and exit with `exitcode::NOPERM`. -fn trial_expired() { +fn exit_trial_expired() {      println!("Your trial has expired");      ::std::process::exit(exitcode::NOPERM) | 
