Skip to content

Commit 5d67b68

Browse files
Merge branch 'main' into rbac-registration-improvements
2 parents 81eec3d + eaf071e commit 5d67b68

File tree

5 files changed

+6
-16
lines changed

5 files changed

+6
-16
lines changed

rust/cardano-blockchain-types/src/cip134_uri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::fmt::{Display, Formatter};
88
use anyhow::{anyhow, Context, Error, Result};
99
use pallas::ledger::addresses::Address;
1010

11-
/// An URI in the CIP-0134 format.
11+
/// A URI in the CIP-0134 format.
1212
///
1313
/// See the [proposal] for more details.
1414
///

rust/cardano-blockchain-types/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Catalyst Enhanced `MultiEraBlock` Structures
22
33
mod auxdata;
4+
mod cip134_uri;
45
mod fork;
56
mod metadata;
67
mod multi_era_block_data;

rust/cardano-blockchain-types/src/slot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use serde::Serialize;
1111

1212
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Default, Serialize)]
1313

14-
/// Slot on the blockchain, typically one slot equals one second. However chain
14+
/// Slot on the blockchain, typically one slot equals one second. However chain
1515
/// parameters can alter how long a slot is.
1616
pub struct Slot(u64);
1717

rust/catalyst-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fluent-uri = "0.3.2"
2323
hex = "0.4.3"
2424
minicbor = { version = "0.25.1", features = ["std"] }
2525
num-traits = "0.2.19"
26-
orx-concurrent-vec = "3.1.0"
26+
orx-concurrent-vec = { version = "3.2.0", features = ["serde"] }
2727
pallas-crypto = { version = "0.30.1", git = "https://github.com/input-output-hk/catalyst-pallas.git", rev = "9b5183c8b90b90fe2cc319d986e933e9518957b3" }
2828
serde = { version = "1.0.217", features = ["derive", "rc"] }
2929
thiserror = "2.0.9"

rust/catalyst-types/src/problem_report.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use std::sync::Arc;
88

99
use orx_concurrent_vec::ConcurrentVec;
10-
use serde::{ser::SerializeSeq, Serialize};
10+
use serde::Serialize;
1111

1212
/// The kind of problem being reported
1313
#[derive(Debug, Serialize, Clone)]
@@ -82,20 +82,9 @@ struct Entry {
8282
}
8383

8484
/// The Problem Report list
85-
#[derive(Debug, Clone)]
85+
#[derive(Debug, Clone, Serialize)]
8686
struct Report(ConcurrentVec<Entry>);
8787

88-
impl Serialize for Report {
89-
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
90-
where S: serde::Serializer {
91-
let mut seq = serializer.serialize_seq(Some(self.0.len()))?;
92-
for e in self.0.iter_cloned() {
93-
seq.serialize_element(&e)?;
94-
}
95-
seq.end()
96-
}
97-
}
98-
9988
/// An inner state of the report.
10089
#[derive(Debug, Serialize)]
10190
struct State {

0 commit comments

Comments
 (0)