Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy::upper_case_acronyms #40

Merged
merged 1 commit into from Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/lib.rs
Expand Up @@ -284,7 +284,7 @@ impl Infer {
///
/// See [`is_app`](./fn.is_app.html).
pub fn is_app(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::APP)
self.is_type(buf, MatcherType::App)
}

/// Determines whether a buffer is an archive type.
Expand All @@ -293,7 +293,7 @@ impl Infer {
///
/// See [`is_archive`](./fn.is_archive.html).
pub fn is_archive(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::ARCHIVE)
self.is_type(buf, MatcherType::Archive)
}

/// Determines whether a buffer is an audio type.
Expand All @@ -302,7 +302,7 @@ impl Infer {
///
/// See [`is_audio`](./fn.is_audio.html).
pub fn is_audio(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::AUDIO)
self.is_type(buf, MatcherType::Audio)
}

/// Determines whether a buffer is a book type.
Expand All @@ -311,7 +311,7 @@ impl Infer {
///
/// See [`is_book`](./fn.is_book.html).
pub fn is_book(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::BOOK)
self.is_type(buf, MatcherType::Book)
}

/// Determines whether a buffer is a document type.
Expand All @@ -320,7 +320,7 @@ impl Infer {
///
/// See [`is_document`](./fn.is_document.html).
pub fn is_document(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::DOC)
self.is_type(buf, MatcherType::Doc)
}

/// Determines whether a buffer is a font type.
Expand All @@ -329,7 +329,7 @@ impl Infer {
///
/// See [`is_font`](./fn.is_font.html).
pub fn is_font(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::FONT)
self.is_type(buf, MatcherType::Font)
}

/// Determines whether a buffer is an image type.
Expand All @@ -338,7 +338,7 @@ impl Infer {
///
/// See [`is_image`](./fn.is_image.html).
pub fn is_image(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::IMAGE)
self.is_type(buf, MatcherType::Image)
}

/// Determines whether a buffer is a video type.
Expand All @@ -347,7 +347,7 @@ impl Infer {
///
/// See [`is_video`](./fn.is_video.html).
pub fn is_video(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::VIDEO)
self.is_type(buf, MatcherType::Video)
}

/// Determines whether a buffer is one of the custom types added.
Expand All @@ -368,7 +368,7 @@ impl Infer {
/// # }
/// ```
pub fn is_custom(&self, buf: &[u8]) -> bool {
self.is_type(buf, MatcherType::CUSTOM)
self.is_type(buf, MatcherType::Custom)
}

/// Adds a custom matcher.
Expand All @@ -394,7 +394,7 @@ impl Infer {
#[cfg(feature = "alloc")]
pub fn add(&mut self, mime_type: &'static str, extension: &'static str, m: Matcher) {
self.mmap.push(Type::new_static(
MatcherType::CUSTOM,
MatcherType::Custom,
mime_type,
extension,
WrapMatcher(m),
Expand Down