message: refactor(assets): Remove duplicate code
diff: @@ -29,7 +29,7 @@ impl AssetsBuilder {
  let source = source.ok_or_else(|| "No asset source provided")?;
  - let mut files = files::FilesBuilder::new(&source)?;
  + let mut files = files::FilesBuilder::new(source)?;
  for line in ignore {
  files.add_ignore(&line)?;
  }
  @@ -40,7 +40,6 @@ impl AssetsBuilder {
  let assets = Assets {
  sass,
  files,
  - source,
  };
  Ok(assets)
  }
  @@ -48,14 +47,13 @@ impl AssetsBuilder {
  #[derive(Debug)]
  pub struct Assets {
  - pub sass: sass::SassCompiler,
  - pub files: files::Files,
  - pub source: path::PathBuf,
  + sass: sass::SassCompiler,
  + files: files::Files,
  }
  impl Assets {
  pub fn source(&self) -> &path::Path {
  - self.source.as_path()
  + self.files.root()
  }
  pub fn files(&self) -> &files::Files {
  @@ -69,10 +67,10 @@ impl Assets {
  fn populate_path(&self, dest: &path::Path) -> Result<()> {
  for file_path in self.files() {
  if file_path.extension() == Some(ffi::OsStr::new("scss")) {
  - self.sass.compile_file(&self.source, dest, file_path)?;
  + self.sass.compile_file(self.source(), dest, file_path)?;
  } else {
  let rel_src = file_path
  - .strip_prefix(&self.source)
  + .strip_prefix(self.source())
  .expect("file was found under the root");
  files::copy_file(&file_path, dest.join(rel_src).as_path())?;
  }
  