Skip to content

Commit a6643d9

Browse files
Fix clippy::upper_case_acronyms
1 parent f1516fe commit a6643d9

File tree

11 files changed

+143
-144
lines changed

11 files changed

+143
-144
lines changed

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ impl Infer {
284284
///
285285
/// See [`is_app`](./fn.is_app.html).
286286
pub fn is_app(&self, buf: &[u8]) -> bool {
287-
self.is_type(buf, MatcherType::APP)
287+
self.is_type(buf, MatcherType::App)
288288
}
289289

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)