Skip to content

Commit

Permalink
Doc fixes (#123)
Browse files Browse the repository at this point in the history
* Replace ndjson.org link with link to spec, as the domain is being squatted.

* Add link to CBOR site.

* Add MessagePack website link.
  • Loading branch information
tarka authored Jan 9, 2025
1 parent 080fa84 commit 5916e41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion actix-web-lab/src/cbor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ use serde::Serialize;

static CBOR_MIME: LazyLock<Mime> = LazyLock::new(|| "application/cbor".parse().unwrap());

/// CBOR responder.
/// [CBOR] responder.
///
/// [CBOR]: https://cbor.io/
#[derive(Debug, Display)]
pub struct Cbor<T>(pub T);

Expand Down
4 changes: 3 additions & 1 deletion actix-web-lab/src/msgpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ use serde::Serialize;

static MSGPACK_MIME: LazyLock<Mime> = LazyLock::new(|| "application/msgpack".parse().unwrap());

/// MessagePack responder.
/// [MessagePack] responder.
///
/// If you require the fields to be named, use [`MessagePackNamed`].
///
/// [MessagePack]: https://msgpack.org/
#[derive(Debug, Display)]
pub struct MessagePack<T>(pub T);

Expand Down
2 changes: 1 addition & 1 deletion actix-web-lab/src/ndjson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pin_project! {
/// }
/// ```
///
/// [NDJSON]: https://ndjson.org/
/// [NDJSON]: https://github.com/ndjson/ndjson-spec
pub struct NdJson<S> {
// The wrapped item stream.
#[pin]
Expand Down

0 comments on commit 5916e41

Please sign in to comment.