Skip to content

Commit 04ab0de

Browse files
Никита ПацакулаMontana Low
authored andcommitted
[*] Bump version.
1 parent 2487773 commit 04ab0de

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightgbm"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
authors = ["vaaaaanquish <6syun9@gmail.com>"]
55
license = "MIT"
66
repository = "https://github.com/vaaaaanquish/LightGBM"
@@ -9,7 +9,7 @@ readme = "README.md"
99
exclude = [".gitignore", ".gitmodules", "examples", "lightgbm-sys"]
1010

1111
[dependencies]
12-
lightgbm-sys = { path = "lightgbm-sys", version = "0.3.0" }
12+
lightgbm-sys = { path = "lightgbm-sys", version = "0.3.1" }
1313
libc = "0.2.81"
1414
derive_builder = "0.12"
1515
serde_json = "1"

lightgbm-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lightgbm-sys"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["vaaaaanquish <6syun9@gmail.com>"]
55
build = "build.rs"
66
license = "MIT"

src/booster.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ mod tests {
230230
use std::path::Path;
231231

232232
fn _read_train_file() -> Result<Dataset> {
233-
Dataset::from_file(&"lightgbm-sys/lightgbm/examples/binary_classification/binary.train")
233+
Dataset::from_file("lightgbm-sys/lightgbm/examples/binary_classification/binary.train")
234234
}
235235

236236
fn _train_booster(params: &Value) -> Booster {
237237
let dataset = _read_train_file().unwrap();
238-
Booster::train(dataset, &params).unwrap()
238+
Booster::train(dataset, params).unwrap()
239239
}
240240

241241
fn _default_params() -> Value {
@@ -309,13 +309,13 @@ mod tests {
309309
fn save_file() {
310310
let params = _default_params();
311311
let bst = _train_booster(&params);
312-
assert_eq!(bst.save_file(&"./test/test_save_file.output"), Ok(()));
312+
assert_eq!(bst.save_file("./test/test_save_file.output"), Ok(()));
313313
assert!(Path::new("./test/test_save_file.output").exists());
314314
let _ = fs::remove_file("./test/test_save_file.output");
315315
}
316316

317317
#[test]
318318
fn from_file() {
319-
let _ = Booster::from_file(&"./test/test_from_file.input");
319+
let _ = Booster::from_file("./test/test_from_file.input");
320320
}
321321
}

src/dataset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl Drop for Dataset {
248248
mod tests {
249249
use super::*;
250250
fn read_train_file() -> Result<Dataset> {
251-
Dataset::from_file(&"lightgbm-sys/lightgbm/examples/binary_classification/binary.train")
251+
Dataset::from_file("lightgbm-sys/lightgbm/examples/binary_classification/binary.train")
252252
}
253253

254254
#[test]

0 commit comments

Comments
 (0)