Skip to content

Commit 3f9f333

Browse files
committed
Make file searching dynamically configurable.
This commit extends the previous commit by also making source file searching dynamically configurable as opposed to forcing the choice when the data source is created. The `file_exact()` constructor is deprecated in favor of `file().search(false)`.
1 parent 01a43d9 commit 3f9f333

File tree

2 files changed

+151
-117
lines changed

2 files changed

+151
-117
lines changed

src/error.rs

-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use std::fmt::{self, Display};
44
use std::borrow::Cow;
5-
use std::path::PathBuf;
65

76
use serde::{ser, de};
87

@@ -129,9 +128,6 @@ pub enum Kind {
129128
/// [`serde::de::Error::duplicate_field()`].
130129
DuplicateField(&'static str),
131130

132-
/// A file marked as required was not present.
133-
MissingFile(PathBuf),
134-
135131
/// The `isize` was not in range of any known sized signed integer.
136132
ISizeOutOfRange(isize),
137133
/// The `usize` was not in range of any known sized unsigned integer.
@@ -464,9 +460,6 @@ impl Display for Kind {
464460
Kind::DuplicateField(v) => {
465461
write!(f, "duplicate field `{}`", v)
466462
}
467-
Kind::MissingFile(v) => {
468-
write!(f, "missing file `{}`", v.to_string_lossy())
469-
}
470463
Kind::ISizeOutOfRange(v) => {
471464
write!(f, "signed integer `{}` is out of range", v)
472465
}

0 commit comments

Comments
 (0)