From 8581f3007512df8e867d6b60d4cc142128954a16 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Sat, 2 Nov 2024 12:42:47 +0000 Subject: [PATCH] identifiers: Fix compile errors in doctests --- crates/ruma-common/src/identifiers/key_id.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruma-common/src/identifiers/key_id.rs b/crates/ruma-common/src/identifiers/key_id.rs index c5a3b077..d27a5e22 100644 --- a/crates/ruma-common/src/identifiers/key_id.rs +++ b/crates/ruma-common/src/identifiers/key_id.rs @@ -30,7 +30,7 @@ use super::{ /// To parse a colon-separated identifier: /// /// ``` -/// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; +/// use ruma_common::{KeyId, OwnedDeviceKeyId}; /// /// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:1").unwrap(); /// assert_eq!(k.algorithm().as_str(), "ed25519"); @@ -40,7 +40,7 @@ use super::{ /// To construct a colon-separated identifier from its parts: /// /// ``` -/// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; +/// use ruma_common::{DeviceKeyAlgorithm, KeyId, OwnedDeviceKeyId}; /// /// let k: OwnedDeviceKeyId = KeyId::from_parts(DeviceKeyAlgorithm::Curve25519, "MYDEVICE".into()); /// assert_eq!(k.to_string(), "curve25519:MYDEVICE"); @@ -71,7 +71,7 @@ impl KeyId { /// # Example /// /// ``` - /// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; + /// use ruma_common::{KeyId, OwnedDeviceKeyId}; /// /// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:1").unwrap(); /// assert_eq!(k.algorithm().as_str(), "ed25519"); @@ -85,7 +85,7 @@ impl KeyId { /// # Example /// /// ``` - /// use ruma_common::{DeviceId, DeviceKeyAlgorithm, KeyId, OwnedKeyId}; + /// use ruma_common::{KeyId, OwnedDeviceKeyId}; /// /// let k: OwnedDeviceKeyId = KeyId::parse("ed25519:foo").unwrap(); /// assert_eq!(k.key_name(), "foo");