how can I convert an array to a vec without cloning the values
Make a Vec
of references:
array.iter_mut().collect::<Vec<_>>();
{ | |
"output": { | |
"bass_enhancer": { | |
"amount": 22.0, | |
"blend": 0.0, | |
"floor": 10.0, | |
"floor-active": true, | |
"harmonics": 9.999999999999995, | |
"input-gain": 0.0, | |
"output-gain": -8.0, |
Thanks to /u/zpoo32 for reporting several issues in this list!
Suppose you have weird taste and you absolutely want:
#!/usr/bin/env bash | |
# Clear out all previous attempts | |
rm -rf "/tmp/source-git/" | |
# Get the dependencies for git, then get openssl | |
sudo apt-get install build-essential fakeroot dpkg-dev -y | |
sudo apt-get build-dep git -y | |
sudo apt-get install libcurl4-openssl-dev -y | |
mkdir -p "/tmp/source-git/" |