1
0
Fork 0
forked from mirror/grapevine
Grapevine is a Matrix homeserver that was originally forked from Conduit 0.7.0. Eventually, Grapevine will be rewritten from scratch in a separate repository.
Find a file
Lambda cd658d038a Add type annotation to fix weird inference error
error[E0275]: overflow evaluating the requirement `Box<[_]>: Deserialize<'_>`
    --> src/api/server_server.rs:1801:32
     |
1801 |       let invited_user: Box<_> = serde_json::from_value(
     |  ________________________________^
1802 | |         signed_event
1803 | |             .get("state_key")
1804 | |             .ok_or(Error::BadRequest(
...    |
1809 | |             .into(),
1810 | |     )
     | |_____^
     |
     = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`grapevine`)
     = note: required for `Box<zerovec::varzerovec::slice::VarZeroSlice<[_], _>>` to implement `Deserialize<'_>`
     = note: 126 redundant requirements hidden
     = note: required for `Box<VarZeroSlice<VarZeroSlice<VarZeroSlice<VarZeroSlice<..., ...>, ...>, ...>, ...>>` to implement `for<'de> Deserialize<'de>`
     = note: required for `Box<VarZeroSlice<VarZeroSlice<VarZeroSlice<VarZeroSlice<..., ...>, ...>, ...>, ...>>` to implement `DeserializeOwned`
note: required by a bound in `serde_json::from_value`
    --> /home/xiretza/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.117/src/value/mod.rs:1006:8
     |
1004 | pub fn from_value<T>(value: Value) -> Result<T, Error>
     |        ---------- required by a bound in this function
1005 | where
1006 |     T: DeserializeOwned,
     |        ^^^^^^^^^^^^^^^^ required by this bound in `from_value`
     = note: the full name for the type has been written to '/home/xiretza/dev/rust/grapevine-fork/target/debug/deps/grapevine-212231bd4a0b94d3.long-type-685143825526684512.txt'
     = note: consider using `--verbose` to print the full type name to the console
     = note: the full name for the type has been written to '/home/xiretza/dev/rust/grapevine-fork/target/debug/deps/grapevine-212231bd4a0b94d3.long-type-685143825526684512.txt'
     = note: consider using `--verbose` to print the full type name to the console
2024-09-06 17:17:00 +00:00
auth-media-cert-gen Add authenticated media certificate generator 2024-09-06 17:17:00 +00:00
bin use all-features devshell for clippy/all in CI 2024-05-30 21:19:08 -07:00
book fetch signing keys on join even when no cached keys for origin 2024-09-01 12:22:10 -07:00
nix remove uses of aliases 2024-08-17 12:31:48 -07:00
src Add type annotation to fix weird inference error 2024-09-06 17:17:00 +00:00
.envrc optionally use nom to build devshell dependencies 2024-05-30 21:19:09 -07:00
.gitignore set up mdbook 2024-06-16 20:23:18 -07:00
.gitlab-ci.yml disable IFD in CI 2024-08-13 12:12:57 -07:00
.lycheeignore set up mdbook 2024-06-16 20:23:18 -07:00
.markdownlintignore set up mdbook 2024-06-16 20:23:18 -07:00
book.toml set up mdbook 2024-06-16 20:23:18 -07:00
Cargo.lock Add authenticated media certificate generator 2024-09-06 17:17:00 +00:00
Cargo.toml Add authenticated media certificate generator 2024-09-06 17:17:00 +00:00
clippy.toml enable doc_markdown lint 2024-05-14 16:34:10 -07:00
default.nix feat: support non-flake users 2024-02-01 19:19:56 -08:00
engage.toml set up mdbook 2024-06-16 20:23:18 -07:00
flake.lock remove usage of IFD in nix packages 2024-08-13 12:12:57 -07:00
flake.nix ensure we don't use aliases again accidentally 2024-08-19 10:36:32 -07:00
LICENSE.md convert license to markdown 2024-04-30 21:54:56 -07:00
README.md set up mdbook 2024-06-16 20:23:18 -07:00
rust-toolchain.toml update the rust toolchain, ignore new lints 2024-05-24 20:09:41 -07:00
rustfmt.toml enable error_on_line_overflow and fix errors 2024-05-16 19:11:40 -07:00

Grapevine

A Matrix homeserver.

Read the book

Click here to read the latest version.