diff options
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r-- | xtask/src/main.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 399ff7204..53d3ce3e7 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -45,7 +45,6 @@ USAGE: | |||
45 | FLAGS: | 45 | FLAGS: |
46 | --client-code Install only VS Code plugin | 46 | --client-code Install only VS Code plugin |
47 | --server Install only the language server | 47 | --server Install only the language server |
48 | --jemalloc Use jemalloc for server | ||
49 | --mimalloc Use mimalloc for server | 48 | --mimalloc Use mimalloc for server |
50 | -h, --help Prints help information | 49 | -h, --help Prints help information |
51 | " | 50 | " |
@@ -62,15 +61,8 @@ FLAGS: | |||
62 | return Ok(()); | 61 | return Ok(()); |
63 | } | 62 | } |
64 | 63 | ||
65 | let malloc = match (args.contains("--jemalloc"), args.contains("--mimalloc")) { | 64 | let malloc = |
66 | (false, false) => Malloc::System, | 65 | if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System }; |
67 | (true, false) => Malloc::Jemalloc, | ||
68 | (false, true) => Malloc::Mimalloc, | ||
69 | (true, true) => { | ||
70 | eprintln!("error: Cannot use both `--jemalloc` and `--mimalloc`"); | ||
71 | return Ok(()); | ||
72 | } | ||
73 | }; | ||
74 | 66 | ||
75 | args.finish()?; | 67 | args.finish()?; |
76 | 68 | ||