feat(loaders): loaders for files and pdfs #111
Annotations
10 errors and 1 warning
Run clippy action:
rig-core/src/_loaders.rs#L125
error[E0432]: unresolved import `super::FileLoader`
--> rig-core/src/_loaders.rs:125:17
|
125 | use super::{FileLoader, PdfLoader};
| ^^^^^^^^^^ no `FileLoader` in `_loaders`
|
Run clippy action:
rig-core/src/_loaders.rs#L6
error[E0412]: cannot find type `FileLoaderError` in this scope
--> rig-core/src/_loaders.rs:6:25
|
6 | LoaderError(#[from] FileLoaderError),
| ^^^^^^^^^^^^^^^ not found in this scope
|
Run clippy action:
rig-core/src/_loaders.rs#L9
error[E0412]: cannot find type `LopdfError` in this scope
--> rig-core/src/_loaders.rs:9:22
|
9 | PdfError(#[from] LopdfError),
| ^^^^^^^^^^ not found in this scope
|
Run clippy action:
rig-core/src/_loaders.rs#L25
error[E0423]: expected function, found crate `glob`
--> rig-core/src/_loaders.rs:25:33
|
25 | let paths = glob(&pattern).map_err(FileLoaderError::PatternError)?;
| ^^^^ not a function
|
help: consider importing this function instead
|
3 + use glob::glob;
|
|
Run clippy action:
rig-core/src/_loaders.rs#L27
error[E0433]: failed to resolve: use of undeclared type `Document`
--> rig-core/src/_loaders.rs:27:35
|
27 | let doc = Document::load(&path).unwrap_or_default();
| ^^^^^^^^ use of undeclared type `Document`
|
help: consider importing one of these structs
|
3 + use crate::completion::Document;
|
3 + use crate::providers::cohere::Document;
|
3 + use lopdf::Document;
|
|
Run clippy action:
rig-core/src/_loaders.rs#L44
error[E0423]: expected function, found crate `glob`
--> rig-core/src/_loaders.rs:44:33
|
44 | let paths = glob(&pattern).map_err(FileLoaderError::PatternError)?;
| ^^^^ not a function
|
help: consider importing this function instead
|
3 + use glob::glob;
|
|
Run clippy action:
rig-core/src/_loaders.rs#L46
error[E0433]: failed to resolve: use of undeclared type `Document`
--> rig-core/src/_loaders.rs:46:35
|
46 | let doc = Document::load(&path).map_err(|e| PdfLoaderError::PdfError(e)).unwrap();
| ^^^^^^^^ use of undeclared type `Document`
|
help: consider importing one of these structs
|
3 + use crate::completion::Document;
|
3 + use crate::providers::cohere::Document;
|
3 + use lopdf::Document;
|
|
Run clippy action:
rig-core/src/_loaders.rs#L66
error[E0423]: expected function, found crate `glob`
--> rig-core/src/_loaders.rs:66:33
|
66 | let paths = glob(&pattern).map_err(FileLoaderError::PatternError)?;
| ^^^^ not a function
|
help: consider importing this function instead
|
3 + use glob::glob;
|
|
Run clippy action:
rig-core/src/_loaders.rs#L68
error[E0433]: failed to resolve: use of undeclared type `Document`
--> rig-core/src/_loaders.rs:68:35
|
68 | let doc = Document::load(&path).map_err(|e| PdfLoaderError::PdfError(e)).unwrap();
| ^^^^^^^^ use of undeclared type `Document`
|
help: consider importing one of these structs
|
3 + use crate::completion::Document;
|
3 + use crate::providers::cohere::Document;
|
3 + use lopdf::Document;
|
|
Run clippy action:
rig-core/src/_loaders.rs#L90
error[E0423]: expected function, found crate `glob`
--> rig-core/src/_loaders.rs:90:37
|
90 | let paths = glob(&pattern).map_err(|e| {
| ^^^^ not a function
|
help: consider importing this function instead
|
3 + use glob::glob;
|
|
Install Rust stable
Unsupported Cargo.lock format, fallback to caching entire file
|
Loading