Permalink
Browse files

Reverted API change

  • Loading branch information...
Aaronepower committed Oct 17, 2018
1 parent 47a334e commit a48f0818f5dbf279746e24184221eb1486e1ac42
Showing with 4 additions and 4 deletions.
  1. +1 −1 build.rs
  2. +1 −1 src/language/languages.rs
  3. +1 −1 src/main.rs
  4. +1 −1 src/utils/fs.rs
@@ -96,7 +96,7 @@ fn generate_tests(out_dir: &OsStr) -> Result<(), Box<error::Error>> {
#[test]
fn {0}() {{
let mut languages = Languages::new();
languages.get_statistics(&["{1}"], Vec::new(), &None);
languages.get_statistics(&["{1}"], Vec::new(), None);
if languages.len() != 1 {{
panic!("wrong languages detected: expected just {0}, found {{:?}}",
@@ -69,7 +69,7 @@ impl Languages {
pub fn get_statistics(&mut self,
paths: &[&str],
ignored: Vec<&str>,
types: &Option<Vec<LanguageType>>)
types: Option<Vec<LanguageType>>)
{
utils::fs::get_all_files(paths, ignored, &mut self.inner, types);
@@ -109,7 +109,7 @@ fn main() -> Result<(), Box<Error>> {
.collect()
});
languages.get_statistics(&paths, ignored_directories, &types);
languages.get_statistics(&paths, ignored_directories, types);
if let Some(format) = output_format {
print!("{}", format.print(languages).unwrap());
@@ -20,7 +20,7 @@ use language::{Language, LanguageType};
pub fn get_all_files(paths: &[&str],
ignored_directories: Vec<&str>,
languages: &mut BTreeMap<LanguageType, Language>,
types: &Option<Vec<LanguageType>>)
types: Option<Vec<LanguageType>>)
{
let (tx, rx) = mpsc::channel();

0 comments on commit a48f081

Please sign in to comment.