You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Enable clippy lints on a workspace level
This enables a lot more lints than before in some crates, so this fixed a lot of warnings as well.
This commit is contained in:
@@ -56,6 +56,10 @@ impl<C: Encoding> Base64<C> {
|
||||
}
|
||||
|
||||
/// Parse some base64-encoded data to create a `Base64` instance.
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the input is not valid base64.
|
||||
pub fn parse(encoded: &str) -> Result<Self, base64ct::Error> {
|
||||
C::decode_vec(encoded).map(Self::new)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user