From ec0b577204a887a21269a6ede4b5fe2a1363e0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dario=20Vladovi=C4=87?= Date: Mon, 6 Jul 2020 03:51:04 +0200 Subject: [PATCH] fix(ocaml): trim OCaml verison (#1436) --- src/modules/ocaml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ocaml.rs b/src/modules/ocaml.rs index be132b0e..7dd64310 100644 --- a/src/modules/ocaml.rs +++ b/src/modules/ocaml.rs @@ -35,7 +35,7 @@ pub fn module<'a>(context: &'a Context) -> Option> { utils::exec_cmd("ocaml", &["-vnum"])?.stdout }; - let formatted_version = format!("v{}", &ocaml_version); + let formatted_version = format!("v{}", &ocaml_version.trim()); let mut module = context.new_module("ocaml"); let config = OCamlConfig::try_load(module.config);