Skip to content

Commit 465bfa9

Browse files
koushirodpc
authored andcommitted
Update dependency and Fix warnings
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
1 parent ddeaf13 commit 465bfa9

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ path = "lib.rs"
2323
slog = "2.1"
2424
thread_local = "1"
2525
take_mut = "0.2.0"
26-
crossbeam-channel = "0.3"
26+
crossbeam-channel = "0.4"
2727

2828
[package.metadata.docs.rs]
2929
features = ["nested-values", "dynamic-keys"]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<a href="https://gitter.im/dpc/slog-async">
1313
<img src="https://img.shields.io/gitter/room/dpc/slog-rs.svg" alt="slog-rs Gitter Chat">
1414
</a>
15+
16+
<a href="https://deps.rs/repo/github/slog-rs/async">
17+
<img src="https://deps.rs/repo/github/slog-rs/async/status.svg" alt="slog-rs Dependency Status">
18+
</a>
1519
</p>
1620

1721
For more information, help, to report issues etc. see [slog-rs][slog-rs].

lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ use take_mut::take;
7373

7474
// {{{ Serializer
7575
struct ToSendSerializer {
76-
kv: Box<KV + Send>,
76+
kv: Box<dyn KV + Send>,
7777
}
7878

7979
impl ToSendSerializer {
8080
fn new() -> Self {
8181
ToSendSerializer { kv: Box::new(()) }
8282
}
8383

84-
fn finish(self) -> Box<KV + Send> {
84+
fn finish(self) -> Box<dyn KV + Send> {
8585
self.kv
8686
}
8787
}
@@ -184,7 +184,7 @@ pub enum AsyncError {
184184
/// Could not send record to worker thread due to full queue
185185
Full,
186186
/// Fatal problem - mutex or channel poisoning issue
187-
Fatal(Box<std::error::Error>),
187+
Fatal(Box<dyn std::error::Error>),
188188
}
189189

190190
impl<T> From<crossbeam_channel::TrySendError<T>> for AsyncError {
@@ -367,7 +367,7 @@ pub struct AsyncGuard {
367367

368368
impl Drop for AsyncGuard {
369369
fn drop(&mut self) {
370-
let _err: Result<(), Box<std::error::Error>> = {
370+
let _err: Result<(), Box<dyn std::error::Error>> = {
371371
|| {
372372
let _ = self.tx.send(AsyncMsg::Finish);
373373
let join = self.join.take().unwrap();
@@ -478,7 +478,7 @@ struct AsyncRecord {
478478
location: Box<slog::RecordLocation>,
479479
tag: String,
480480
logger_values: OwnedKVList,
481-
kv: Box<KV + Send>,
481+
kv: Box<dyn KV + Send>,
482482
}
483483

484484
enum AsyncMsg {
@@ -488,7 +488,7 @@ enum AsyncMsg {
488488

489489
impl Drop for AsyncCore {
490490
fn drop(&mut self) {
491-
let _err: Result<(), Box<std::error::Error>> = {
491+
let _err: Result<(), Box<dyn std::error::Error>> = {
492492
|| {
493493
if let Some(join) = self.join.lock()?.take() {
494494
let _ = self.get_sender()?.send(AsyncMsg::Finish);

0 commit comments

Comments
 (0)