You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Enable the clippy::str_to_string lint
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(clippy::all, rustdoc::broken_intra_doc_links)]
|
||||
#![deny(clippy::all, clippy::str_to_string, rustdoc::broken_intra_doc_links)]
|
||||
#![warn(clippy::pedantic)]
|
||||
|
||||
use std::{collections::HashMap, fmt::Display, path::PathBuf, sync::Arc};
|
||||
|
@ -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(),
|
||||
},
|
||||
)
|
||||
|
Reference in New Issue
Block a user