Skip to content

Commit ca1d741

Browse files
committed
style: Don't interript File
1 parent aea77fe commit ca1d741

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/file/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ pub use self::format::FileFormat;
1515
pub use self::source::file::FileSourceFile;
1616
pub use self::source::string::FileSourceString;
1717

18+
/// An extension of [`Format`] trait.
19+
///
20+
/// Associates format with file extensions, therefore linking storage-agnostic notion of format to a file system.
21+
pub trait FileStoredFormat: Format {
22+
/// Returns a vector of file extensions, for instance `[yml, yaml]`.
23+
fn file_extensions(&self) -> &'static [&'static str];
24+
}
25+
1826
/// A configuration source backed up by a file.
1927
///
2028
/// It supports optional automatic file format discovery.
@@ -30,14 +38,6 @@ pub struct File<T, F> {
3038
required: bool,
3139
}
3240

33-
/// An extension of [`Format`] trait.
34-
///
35-
/// Associates format with file extensions, therefore linking storage-agnostic notion of format to a file system.
36-
pub trait FileStoredFormat: Format {
37-
/// Returns a vector of file extensions, for instance `[yml, yaml]`.
38-
fn file_extensions(&self) -> &'static [&'static str];
39-
}
40-
4141
impl<F> File<FileSourceString, F>
4242
where
4343
F: FileStoredFormat + 'static,

0 commit comments

Comments
 (0)