diff --git a/src/main.rs b/src/main.rs index 3396915..916b17d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -160,7 +160,7 @@ fn main() -> Result<(), Box> { let data = &mut read_inputfile(inputfile)?; if let Some(profile) = profile { - let profile = if profile.contains(".") { + let profile = if profile.contains('.') { read_profile(profile.clone()).map_err(|_| { FileError::Reading(profile, "Kann Profildatei nicht lesen!".into()) })?