mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
lint
This commit is contained in:
parent
5bbce91e51
commit
b5725da9ea
@ -64,9 +64,14 @@ module.exports = async function(hakEnv, moduleInfo) {
|
|||||||
|
|
||||||
// Ensure Rust target exists (nb. we avoid depending on rustup)
|
// Ensure Rust target exists (nb. we avoid depending on rustup)
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
const rustc = childProcess.execFile('rustc', ['--target', hakEnv.getTargetId(), '-o', 'tmp', '-'], (err, out) => {
|
const rustc = childProcess.execFile('rustc', [
|
||||||
|
'--target', hakEnv.getTargetId(), '-o', 'tmp', '-',
|
||||||
|
], (err, out) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject("rustc can't build for target " + hakEnv.getTargetId() + ": ensure the correct toolchain is installed");
|
reject(
|
||||||
|
"rustc can't build for target " + hakEnv.getTargetId() +
|
||||||
|
": ensure the correct toolchain is installed",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
fsProm.unlink('tmp').then(resolve);
|
fsProm.unlink('tmp').then(resolve);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user