Skip to content

Commit 76d075f

Browse files
committed
add 15 code, Runtime Error
1 parent 9c1d4a8 commit 76d075f

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

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.2.8"
7+
version = "0.2.10"
88
authors = ["clearloop <udtrokia@163.com>"]
99
edition = "2018"
1010
description = "Leet your code in command-line."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cargo install leetcode-cli
2323
**Please make sure you have logined in `leetcode.com` with `chrome`**, more info plz checkout [this](#cookies)
2424

2525
```sh
26-
leetcode 0.2.9
26+
leetcode 0.2.10
2727
clearloop <udtrokia@163.com>
2828
Here's to the crazy ones 👻
2929

src/cache/models.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ impl std::fmt::Display for VerifyResult {
367367
&self.status.status_msg.yellow().bold(),
368368
&self.code_output,
369369
),
370+
// Runtime error
371+
15 => write!(f, "\n{}\n", &self.status.status_msg.red().bold()),
370372
// Compile Error
371373
20 => write!(
372374
f,

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use clap::{App, AppSettings};
1313
pub fn main() -> Result<(), Error> {
1414
let m = App::new("leetcode")
1515
.author("clearloop <udtrokia@163.com>")
16-
.version("0.2.8")
16+
.version("0.2.10")
1717
.about("Here's to the crazy ones 👻")
1818
.subcommands(vec![
1919
DataCommand::usage().display_order(1),

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! **Please make sure you have logined in `leetcode.com` with `chrome`**, more info plz checkout [this](#cookies)
2424
//!
2525
//! ```sh
26-
//! leetcode 0.2.9
26+
//! leetcode 0.2.10
2727
//! clearloop <udtrokia@163.com>
2828
//! Here's to the crazy ones 👻
2929
//!

0 commit comments

Comments
 (0)