Skip to content

Commit dca23d6

Browse files
committed
Bump version
1 parent fa0672e commit dca23d6

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77

8+
## 2.0.0 - 2017-04-02
9+
10+
* Update dependencies
11+
812
## 2.0.0-3.0 - 2017-04-02
913
### Changed
1014

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "slog-envlogger"
4-
version = "2.0.0-3.0"
4+
version = "2.0.0"
55
authors = ["The Rust Project Developers", "Dawid Ciężarkiewicz <dpc@dpc.pw>"]
66
license = "MIT/Apache-2.0"
77
readme = "README.md"
@@ -16,12 +16,12 @@ Port of de facto standard logger implementation for Rust, to `slog-rs` framework
1616
path = "src/lib.rs"
1717

1818
[dependencies]
19-
slog = "~2.0.0-3"
19+
slog = "2"
2020
regex = "0.1"
21-
slog-term = "~2.0.0-3"
22-
slog-stdlog = "~2.0.0-3"
23-
slog-scope = "~2.0.0-3"
24-
slog-async = "~2.0.0-3"
21+
slog-term = "2"
22+
slog-stdlog = "2"
23+
slog-scope = "3"
24+
slog-async = "2"
2525
log = "0.3.6"
2626

2727
[[test]]

examples/proper.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ extern crate slog_async;
1010
extern crate slog;
1111

1212
use slog::Drain;
13-
use std::sync::Arc;
1413

1514
#[macro_use]
1615
extern crate log;
@@ -25,13 +24,12 @@ fn main() {
2524
).build().fuse()
2625
));
2726

28-
let root_logger = slog::Logger::root(Arc::new(drain.fuse()),
27+
let root_logger = slog::Logger::root(drain.fuse(),
2928
slog_o!("build" => "8jdkj2df", "version" => "0.1.5"));
3029

3130
slog_stdlog::init().unwrap();
3231

33-
//slog_scope::set_global_logger(root_logger.clone().into_erased());
34-
slog_scope::scope(root_logger.clone().into_erased(), || {
32+
slog_scope::scope(&root_logger, || {
3533

3634
slog_error!(root_logger, "slog error");
3735
error!("log error");

examples/scopes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
error!("log error");
1515

1616
slog_scope::scope(
17-
slog_scope::logger().new(o!("scope-extra-data" => "data")),
17+
&slog_scope::logger().new(o!("scope-extra-data" => "data")),
1818
|| foo()
1919
);
2020

@@ -26,7 +26,7 @@ fn foo() {
2626

2727
// scopes can be nested!
2828
slog_scope::scope(
29-
slog_scope::logger().new(o!("even-more-scope-extra-data" => "data2")),
29+
&slog_scope::logger().new(o!("even-more-scope-extra-data" => "data2")),
3030
|| bar()
3131
);
3232
}

0 commit comments

Comments
 (0)