Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 87eb0b9

Browse files
Bump version and update contributors (clearloop#23)
* bump(0.3.1): bump version and update contributors * ci(env): use nightly env rust action provides * ci(toolchain): add action-rs and supports nightly toolchain * ci(actions): fix typo * ci(rust): fix verbose flag
1 parent e3fe82e commit 87eb0b9

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

β€Ž.github/workflows/rust.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
os: [macOS-latest, ubuntu-latest]
1111
steps:
1212
- name: Checkout the source code
13-
uses: actions/checkout@master
13+
uses: actions/checkout@v1
14+
- name: Set nightly toolchain
15+
uses: actions-rs/toolchain@v1
1416
with:
15-
rust-version: nightly
17+
toolchain: nightly
18+
override: true
1619
- name: Environment
1720
run: |
18-
rustup update
19-
rustup toolchain install nightly
20-
2121
if [[ "$(uname)" == 'Darwin' ]]; then
2222
brew update
2323
brew install sqlite3
@@ -26,6 +26,6 @@ jobs:
2626
sudo apt-get install -y libsqlite3-dev libdbus-1-dev
2727
fi
2828
- name: Build
29-
run: cargo +nightly build --verbose
29+
run: cargo build --all-features -vv
3030
- name: Run tests
31-
run: cargo +nightly test --verbose
31+
run: cargo test --all-features -vv

β€ŽCONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Contributors
22

3+
+ [@aymanbagabas](https://github.com/aymanbagabas)
4+
+ [@xiaoxiae](https://github.com/xiaoxiae)
35
+ [@hulufei](https://github.com/hulufei)
46
+ [@ldm0](https://github.com/ldm0)
57
+ [@Raees678](https://github.com/Raees678)

β€ŽCargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ path = "src/bin/lc.rs"
44

55
[package]
66
name = "leetcode-cli"
7-
version = "0.3.0"
7+
version = "0.3.1"
88
authors = ["clearloop <cdr.today@foxmail.com>"]
99
edition = "2018"
1010
description = "Leet your code in command-line."

β€ŽREADME.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
[![LICENSE](https://img.shields.io/crates/l/leetcode-cli.svg)](https://choosealicense.com/licenses/mit/)
88

99
## Contributors
10-
+ [@hulufi](https://github.com/hulufei)
10+
11+
+ [@aymanbagabas](https://github.com/aymanbagabas)
12+
+ [@xiaoxiae](https://github.com/xiaoxiae)
13+
+ [@hulufei](https://github.com/hulufei)
1114
+ [@ldm0](https://github.com/ldm0)
1215
+ [@Raees678](https://github.com/Raees678)
1316
+ [@clearloop](https://github.com/clearloop)
1417

18+
1519
## Features
1620

1721
+ [x] the edit flow β€”β€” solution files will generate automatically!
@@ -25,13 +29,16 @@ cargo install leetcode-cli
2529
```
2630

2731
### `error[E0554]`
32+
2833
If this happens when compiling the program, it means that the package cannot be compiled with stable Rust. To fix this, install Rust Nightly and try the following:
34+
2935
```sh
3036
rustup install nightly
3137
cargo +nightly install leetcode-cli
3238
```
3339

3440
## Usage
41+
3542
**Make sure you have logged in to `leetcode.com` with `Chrome`**. See [Cookies](#cookies) for why you need to do this first.
3643

3744
```sh
@@ -228,9 +235,11 @@ And that's it! Enjoy!
228235

229236

230237
## PR
238+
231239
[PRs][pr] are more than welcome!
232240

233241
## LICENSE
242+
234243
MIT
235244

236245

β€Žsrc/cmds/list.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ use super::Command;
3737
use crate::{cache::Cache, err::Error, helper::Digit};
3838
use async_trait::async_trait;
3939
use clap::{App, Arg, ArgMatches, SubCommand};
40-
use std::io::{self, Write};
4140
/// Abstract `list` command
4241
///
4342
/// ## handler
@@ -170,7 +169,7 @@ impl Command for ListCommand {
170169
}
171170

172171
let out: Vec<String> = ps.iter().map(ToString::to_string).collect();
173-
io::stdout().write_all(out.join("\n").as_bytes())?;
172+
println!("{}",out.join("\n"));
174173

175174
// one more thing, filter stat
176175
if m.is_present("stat") {

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /