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:
@ -75,7 +75,7 @@ impl Options {
|
||||
// Read the MAS_CONFIG environment variable
|
||||
std::env::var("MAS_CONFIG")
|
||||
// Default to "config.yaml"
|
||||
.unwrap_or_else(|_| "config.yaml".to_string())
|
||||
.unwrap_or_else(|_| "config.yaml".to_owned())
|
||||
// Split the file list on `:`
|
||||
.split(':')
|
||||
.map(PathBuf::from)
|
||||
|
@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(clippy::all)]
|
||||
#![deny(clippy::all, clippy::str_to_string)]
|
||||
#![warn(clippy::pedantic)]
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
|
||||
|
Reference in New Issue
Block a user