1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Enable the clippy::str_to_string lint

This commit is contained in:
Quentin Gliech
2022-08-05 10:18:32 +02:00
parent 78fe152d9b
commit c1ed726dc8
39 changed files with 120 additions and 81 deletions

View File

@@ -89,8 +89,8 @@ pub trait EnumEntry: DeserializeOwned + Send + Sync {
(
key,
EnumMember {
value: item.name().to_string(),
description: item.description().map(ToString::to_string),
value: item.name().to_owned(),
description: item.description().map(ToOwned::to_owned),
enum_name: item.enum_name(),
},
)