Fix clippy warnings

This commit is contained in:
Lucien Greathouse
2019-10-17 18:22:53 -07:00
parent ec614e1912
commit 44c94da2d8
17 changed files with 42 additions and 33 deletions

View File

@@ -81,9 +81,9 @@ pub fn build(options: &BuildOptions) -> Result<(), BuildError> {
log::debug!("Hoping to generate file of type {:?}", output_kind);
log::trace!("Constructing in-memory filesystem");
let mut vfs = Vfs::new(RealFetcher::new(WatchMode::Disabled));
let vfs = Vfs::new(RealFetcher::new(WatchMode::Disabled));
let (_maybe_project, tree) = common_setup::start(&options.fuzzy_project_path, &mut vfs);
let (_maybe_project, tree) = common_setup::start(&options.fuzzy_project_path, &vfs);
let root_id = tree.get_root_id();
log::trace!("Opening output file for write");

View File

@@ -65,7 +65,7 @@ fn show_start_message(port: u16) -> io::Result<()> {
buffer.set_color(ColorSpec::new().set_fg(Some(Color::Green)).set_bold(true))?;
writeln!(&mut buffer, "{}", port)?;
writeln!(&mut buffer, "")?;
writeln!(&mut buffer)?;
buffer.set_color(&ColorSpec::new())?;
write!(&mut buffer, "Visit ")?;

View File

@@ -44,9 +44,9 @@ pub fn upload(options: UploadOptions) -> Result<(), UploadError> {
.ok_or(UploadError::NeedAuthCookie)?;
log::trace!("Constructing in-memory filesystem");
let mut vfs = Vfs::new(RealFetcher::new(WatchMode::Disabled));
let vfs = Vfs::new(RealFetcher::new(WatchMode::Disabled));
let (_maybe_project, tree) = common_setup::start(&options.fuzzy_project_path, &mut vfs);
let (_maybe_project, tree) = common_setup::start(&options.fuzzy_project_path, &vfs);
let root_id = tree.get_root_id();
let mut buffer = Vec::new();