Remove unused Result<> return
This commit is contained in:
parent
77ee59a9e3
commit
96a41e1b4c
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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())?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue