Skip to content

Commit

Permalink
Fix more warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jun 29, 2020
1 parent 13f89f5 commit 10b1303
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::env;
use std::path::PathBuf;

use clap::{App, AppSettings, Arg, ArgGroup, ArgMatches, SubCommand};
use dirs;

use crate::templates;

Expand Down
1 change: 0 additions & 1 deletion src/file_assoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use std::io;

use clap;
use itertools::Itertools;
use winreg::{enums as wre, RegKey};

Expand Down
3 changes: 1 addition & 2 deletions src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use std::path::Path;

use pulldown_cmark::{CodeBlockKind, Event, Options, Parser, Tag};
use regex::Regex;
use toml;

use crate::error::{Blame, Result};
use crate::templates;
Expand Down Expand Up @@ -819,7 +818,7 @@ fn extract_comment(s: &str) -> Result<String> {
// Update nesting and look for end-of-comment.
let mut end_of_comment = None;

for (end, marker) in { nesting_re.find_iter(line).map(|m| (m.start(), m.as_str())) } {
for (end, marker) in nesting_re.find_iter(line).map(|m| (m.start(), m.as_str())) {
match (marker, depth) {
("/*", _) => depth += 1,
("*/", 1) => {
Expand Down
2 changes: 0 additions & 2 deletions src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ This module contains code related to template support.
*/
use crate::app;
use crate::error::{Blame, MainError, Result, ResultExt};
use clap;
use open;
use regex::Regex;
use std::borrow::Cow;
use std::collections::HashMap;
Expand Down
1 change: 0 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ pub use self::suppress_child_output::{suppress_child_output, ChildToken};
#[cfg(feature = "suppress-cargo-output")]
mod suppress_child_output {
use crate::error::Result;
use chan;
use std::io;
use std::process::{self, Command};
use std::thread;
Expand Down

0 comments on commit 10b1303

Please sign in to comment.