We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 111ac61 commit 430865eCopy full SHA for 430865e
src/lib.rs
@@ -1,6 +1,8 @@
1
#![warn(clippy::pedantic)]
2
use std::path::Path;
3
4
+#[derive(Debug)]
5
+#[non_exhaustive]
6
pub enum SDKErr {
7
SrcFileNotFound(String),
8
}
@@ -12,7 +14,7 @@ pub fn build_code_model(files: Vec<String>) -> Result<bool, SDKErr> {
12
14
for file in files {
13
15
let path = Path::new(&file);
16
if !path.exists() {
- return Err(SDKErr::SrcFileNotFound(format!("File not found: {file}")));
17
+ return Err(SDKErr::SrcFileNotFound(format!("file not found: {file}")));
18
19
20
Ok(true)
0 commit comments