Remove unused Result<> return

This commit is contained in:
Félix Saparelli 2022-01-26 03:24:15 +13:00
parent 77ee59a9e3
commit 96a41e1b4c
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ pub async fn ignores(
args: &ArgMatches<'static>,
vcs_types: &[ProjectType],
origin: &Path,
) -> Result<Vec<IgnoreFile>> {
) -> Vec<IgnoreFile> {
let (mut ignores, errors) = ignore::from_origin(origin).await;
for err in errors {
warn!("while discovering project-local ignore files: {}", err);
@ -150,5 +150,5 @@ pub async fn ignores(
debug!(?ignores, "filtered ignores to exclude VCS-specific ignores");
}
Ok(ignores)
ignores
}

View File

@ -19,7 +19,7 @@ use watchexec::{
pub async fn globset(args: &ArgMatches<'static>) -> Result<Arc<WatchexecFilterer>> {
let (project_origin, workdir) = super::common::dirs(args).await?;
let vcs_types = super::common::vcs_types(&project_origin).await;
let ignore_files = super::common::ignores(args, &vcs_types, &project_origin).await?;
let ignore_files = super::common::ignores(args, &vcs_types, &project_origin).await;
let mut ignores = Vec::new();

View File

@ -16,7 +16,7 @@ use watchexec::{
pub async fn tagged(args: &ArgMatches<'static>) -> Result<Arc<TaggedFilterer>> {
let (project_origin, workdir) = super::common::dirs(args).await?;
let vcs_types = super::common::vcs_types(&project_origin).await;
let ignores = super::common::ignores(args, &vcs_types, &project_origin).await?;
let ignores = super::common::ignores(args, &vcs_types, &project_origin).await;
let filterer = TaggedFilterer::new(project_origin, workdir.clone())?;