Skip to content

Commit

Permalink
upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
mitnk committed Feb 24, 2022
1 parent 541e2d9 commit 1844c89
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# cicada Release Notes

## 0.9.27 - 2022-02-24

- Fixed a minor prompt render issue.

## 0.9.26 - 2022-02-21

- No changes, only a version fix for Termux.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
edition = "2021"
build = "src/build.rs"
name = "cicada"
version = "0.9.26"
version = "0.9.27"
authors = ["Hugo Wang <w@mitnk.com>"]

description = "A simple Bash-like Unix shell."
Expand Down
8 changes: 4 additions & 4 deletions src/builtins/ulimit.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{Arg, App, ErrorKind};
use clap::{Arg, Command as ClapCommand, ErrorKind};
use libc;

use std::io::{Error, Write};
Expand All @@ -16,7 +16,7 @@ pub fn run(_sh: &mut Shell, cl: &CommandLine, cmd: &Command,
let args = parsers::parser_line::tokens_to_args(tokens);
// NOTE: these default_missing_value -1 is for reporting only
// we cannot change the limit less then zero.
let mut app = App::new("ulimit")
let mut app = ClapCommand::new("ulimit")
.about("Show / Modify shell resource limits")
.arg(Arg::new("report_all")
.short('a')
Expand Down Expand Up @@ -65,7 +65,7 @@ pub fn run(_sh: &mut Shell, cl: &CommandLine, cmd: &Command,
match matches.value_of_t("open_files") {
Ok(x) => open_files = x,
Err(e) => {
match e.kind {
match e.kind() {
ErrorKind::ArgumentNotFound => open_files = -1,
_ => {
let info = format!("cicada: ulimit: invalid params: {}", e);
Expand All @@ -80,7 +80,7 @@ pub fn run(_sh: &mut Shell, cl: &CommandLine, cmd: &Command,
match matches.value_of_t("core_file_size") {
Ok(x) => core_file_size = x,
Err(e) => {
match e.kind {
match e.kind() {
ErrorKind::ArgumentNotFound => core_file_size = -1,
_ => {
let info = format!("cicada: ulimit: invalid params: {}", e);
Expand Down

0 comments on commit 1844c89

Please sign in to comment.