mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-26 02:51:08 -05:00
commit
cc5c2b6f5d
2 changed files with 10 additions and 2 deletions
|
@ -380,7 +380,7 @@ impl FileChecker for FoundFiles {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read_file(
|
fn read_file(
|
||||||
path: &std::path::Path,
|
path: &std::path::Path,
|
||||||
reporter: &dyn report::Report,
|
reporter: &dyn report::Report,
|
||||||
) -> Result<(Vec<u8>, content_inspector::ContentType), std::io::Error> {
|
) -> Result<(Vec<u8>, content_inspector::ContentType), std::io::Error> {
|
||||||
|
@ -418,7 +418,7 @@ pub fn read_file(
|
||||||
Ok((buffer, content_type))
|
Ok((buffer, content_type))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_file(
|
fn write_file(
|
||||||
path: &std::path::Path,
|
path: &std::path::Path,
|
||||||
content_type: content_inspector::ContentType,
|
content_type: content_inspector::ContentType,
|
||||||
buffer: Vec<u8>,
|
buffer: Vec<u8>,
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
|
/// `typos_cli`'s API is unstable. Open an issue for starting a discussion on getting a subset
|
||||||
|
/// stabilized.
|
||||||
|
|
||||||
|
#[doc(hidden)]
|
||||||
pub mod config;
|
pub mod config;
|
||||||
|
#[doc(hidden)]
|
||||||
pub mod dict;
|
pub mod dict;
|
||||||
|
#[doc(hidden)]
|
||||||
pub mod file;
|
pub mod file;
|
||||||
|
#[doc(hidden)]
|
||||||
pub mod policy;
|
pub mod policy;
|
||||||
|
#[doc(hidden)]
|
||||||
pub mod report;
|
pub mod report;
|
||||||
|
|
Loading…
Reference in a new issue