Skip to content

Commit

Permalink
de-clutter the docstring for .device_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed May 4, 2021
1 parent 16122e2 commit b251ab0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions rust/protocol/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
//! A normalized representation of an individual Signal client instance.
#[cfg(doc)]
use crate::{
sealed_sender::{self, UnidentifiedSenderMessageContent},
SignalMessage,
};
use crate::SignalMessage;

use std::fmt;

Expand Down Expand Up @@ -47,10 +44,9 @@ impl ProtocolAddress {

/// An identifier representing a particular Signal client instance to send to.
///
/// For example, if a user has set up Signal on both their phone and laptop, any
/// [UnidentifiedSenderMessageContent] sent to the user will only go to a single
/// device. A single [SignalMessage] goes to a particular device, so when a user sends a message
/// to another user at all, they're actually sending a message to *every* device.
/// For example, if a user has set up Signal on both their phone and laptop, any [SignalMessage]
/// sent to the user will still only go to a single device. So when a user sends a message to
/// another user at all, they're actually sending a message to *every* device.
#[inline]
pub fn device_id(&self) -> DeviceId {
self.device_id
Expand Down

0 comments on commit b251ab0

Please sign in to comment.