Remove clone

This commit is contained in:
Edward Shen 2022-06-02 22:24:46 -07:00
parent 531a7da636
commit dc216a80d5
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -267,7 +267,7 @@ pub fn get_config_data() -> Result<FileData, BunBunError> {
debug!("Checking locations for config file: {:?}", &locations);
for location in &locations {
let file = OpenOptions::new().read(true).open(location.clone());
let file = OpenOptions::new().read(true).open(location);
match file {
Ok(file) => {
debug!("Found file at {location:?}.");