Skip to content

Commit

Permalink
Add a debug implementation for Address (#67)
Browse files Browse the repository at this point in the history
* Add a debug implementation for Address

* fmt

* Ensure debug works for messagechannel & show RC info

* format

* Add test

* Remove refcounter type from struct name

* Ensure debug works for messagechannel & show RC info

* Fix rebase issue

* Turbofish over type annotation (@thomaseizinger)

Thanks to @thomaseizinger!

Co-authored-by: Thomas Eizinger <thomas@eizinger.io>

* Remove unnecessary locking

* rustfmt

* Try fix MSRV issue

* Revert (original change red herring)

Technically this is not an MSRV issue, this is an actions + not commiting Cargo.lock issue, since having async_global_executor on 2021 should be fine as long as your compiler is also on 2021, and xtra won't specifically bring in the 2021 edition as it.

Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
  • Loading branch information
Restioson and thomaseizinger committed Jun 10, 2022
1 parent aaaacc4 commit b10afb4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/address.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
//! An address to an actor is a way to send it a message. An address allows an actor to be sent any
//! kind of message that it can receive.
use flume::r#async::SendSink;
use futures_core::Stream;
use futures_sink::Sink;
use futures_util::{future, StreamExt};
use std::fmt::{self, Debug, Display, Formatter};
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
use std::{cmp::Ordering, error::Error, hash::Hash};

use flume::r#async::SendSink;
use futures_core::Stream;
use futures_sink::Sink;
use futures_util::{future, StreamExt};

use crate::envelope::{NonReturningEnvelope, ReturningEnvelope};
use crate::manager::AddressMessage;
use crate::refcount::{Either, RefCounter, Strong, Weak};
Expand Down

0 comments on commit b10afb4

Please sign in to comment.