macros: Simplify symbol path
This commit is contained in:
parent
c7a3c4e4fc
commit
ba2914a22a
@ -852,7 +852,7 @@ pub enum EventEnumVariation {
|
||||
Initial,
|
||||
}
|
||||
|
||||
impl From<EventEnumVariation> for crate::events::event_parse::EventKindVariation {
|
||||
impl From<EventEnumVariation> for super::event_parse::EventKindVariation {
|
||||
fn from(v: EventEnumVariation) -> Self {
|
||||
match v {
|
||||
EventEnumVariation::None => Self::None,
|
||||
|
@ -14,7 +14,7 @@ use ruma_common::serde::Base64;
|
||||
use crate::{signatures::Signature, Algorithm, Error, ParseError};
|
||||
|
||||
#[cfg(feature = "ring-compat")]
|
||||
pub mod compat;
|
||||
mod compat;
|
||||
|
||||
/// A cryptographic key pair for digitally signing data.
|
||||
pub trait KeyPair: Sized {
|
||||
|
@ -1,13 +1,13 @@
|
||||
use subslice::SubsliceExt as _;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum CompatibleDocument<'a> {
|
||||
pub(super) enum CompatibleDocument<'a> {
|
||||
WellFormed(&'a [u8]),
|
||||
CleanedFromRing(Vec<u8>),
|
||||
}
|
||||
|
||||
impl<'a> CompatibleDocument<'a> {
|
||||
pub fn from_bytes(bytes: &'a [u8]) -> Self {
|
||||
pub(super) fn from_bytes(bytes: &'a [u8]) -> Self {
|
||||
if is_ring(bytes) {
|
||||
Self::CleanedFromRing(fix_ring_doc(bytes.to_vec()))
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user