matrix-org / vodozemac

An implementation of Olm and Megolm in pure Rust.
Apache License 2.0
155 stars 29 forks source link

test(types): Add mutation tests #144

Closed Johennes closed 5 months ago

Johennes commented 5 months ago

This fixes the following:

MISSED   src/types/mod.rs:33:9: replace <impl From for String>::from -> String with "xyzzy".into() in 0.7s build + 3.0s test
MISSED   src/types/mod.rs:33:9: replace <impl From for String>::from -> String with String::new() in 0.8s build + 3.2s test
MISSED   src/types/mod.rs:39:9: replace KeyId::to_base64 -> String with "xyzzy".into() in 1.0s build + 3.2s test
MISSED   src/types/mod.rs:39:9: replace KeyId::to_base64 -> String with String::new() in 0.8s build + 3.2s test

Relates to: #78

Johennes commented 5 months ago

Attempt to fix the unrelated clippy warnings: https://github.com/matrix-org/vodozemac/pull/145