summaryrefslogtreecommitdiffstats
path: root/src/configure.rs
diff options
context:
space:
mode:
authorjRimbault <jacques.rimbault@gmail.com>2020-10-17 11:09:27 +0200
committerGitHub <noreply@github.com>2020-10-17 11:09:27 +0200
commit95bb901b8a4927fb50386a5c52a285392b60f90d (patch)
treef8170a5bc266e01a74a9d52fd2678719fb87f8d0 /src/configure.rs
parent3287e48b6575aba083ce5aca8a8ab2e16323b25d (diff)
chore: fix the double compiling of lib and bin (#1616)
* fix: rust modules are compiled twice The modules being declared both in the _library_ crate and the _binary_ crate made cargo compile everything twice: 1. for the library 2. for the binary What happened was: 1. The library "starship" was compiled. 2. The binary "starship" (and all its modules) were compiled. * fix: stop compiling every rust module twice restrict visibility * Run cargo fmt * Add bug_report module Co-authored-by: Matan Kushner <hello@matchai.dev> Co-authored-by: Kevin Song <chips@ksong.dev>
Diffstat (limited to 'src/configure.rs')
-rw-r--r--src/configure.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configure.rs b/src/configure.rs
index ac9b93e3f..bb70c88cb 100644
--- a/src/configure.rs
+++ b/src/configure.rs
@@ -4,7 +4,7 @@ use std::io::ErrorKind;
use std::process;
use std::process::Command;
-use starship::config::StarshipConfig;
+use crate::config::StarshipConfig;
use std::fs::File;
use std::io::Write;
use toml::map::Map;