Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 6a7acb1f rédigé par Kubat's avatar Kubat
Parcourir les fichiers

MISC: Inline things

parent 5e8b58fd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -10,11 +10,10 @@ where
match std::fs::read_to_string(&path) {
Ok(config) => {
let config = Box::leak(String::into_boxed_str(config));
let config = toml::from_str::<Config>(config).map_err(|err| {
toml::from_str::<Config>(config).map_err(|err| {
let path = path.to_string_lossy();
format!("invalid config file `{path}`: {err}")
})?;
Ok(config)
})
}
Err(_) => {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter