fix: Change the structure of builder
Some checks failed
build / checks-matrix (push) Successful in 19m21s
build / codecov (push) Failing after 19m18s
docs / docs (push) Has been cancelled
build / checks-build (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-18 12:03:00 +05:30
parent 050e937408
commit 087d841959
3 changed files with 11 additions and 10 deletions

View File

@@ -56,9 +56,10 @@ impl FaceDetectionBuilder {
}
impl FaceDetection {
pub fn builder<T: AsRef<[u8]>>()
-> fn(T) -> std::result::Result<FaceDetectionBuilder, Report<Error>> {
FaceDetectionBuilder::new
pub fn builder<T: AsRef<[u8]>>(
model: T,
) -> std::result::Result<FaceDetectionBuilder, error_stack::Report<crate::errors::Error>> {
FaceDetectionBuilder::new(model)
}
pub fn new(path: impl AsRef<Path>) -> Result<Self> {