Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Merge branch '0.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
aahancoc committed Feb 25, 2020
2 parents 2d9ce48 + 728d02d commit b992414
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# 0.2.3

Upgraded package versions to latest (except nom, which is currently stuck at
3.x) and fixed the paths in the doc tests

# 0.2.2

Updated most dependencies to their latest version. nom is still stuck at 0.3.x
due to some difficulties in porting to a newer version.
Yanked due to accidental breaking API change

# 0.2.1

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree_magic"
version = "0.2.2"
version = "0.2.3"
authors = ["Allison Hancock <[email protected]>"]
description = "Determines the MIME type of a file by traversing a filetype tree."
repository = "https://github.com/aahancoc/tree_magic/"
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//! extern crate tree_magic;
//!
//! // Load a GIF file
//! let input: &[u8] = include_bytes!("tests/image/gif");
//! let input: &[u8] = include_bytes!("../tests/image/gif");
//!
//! // Find the MIME type of the GIF
//! let result = tree_magic::from_u8(input);
Expand Down Expand Up @@ -338,7 +338,7 @@ fn match_u8_noalias(mimetype: &str, bytes: &[u8]) -> bool
/// # Examples
/// ```rust
/// // Load a GIF file
/// let input: &[u8] = include_bytes!("tests/image/gif");
/// let input: &[u8] = include_bytes!("../tests/image/gif");
///
/// // Check if the MIME and the file are a match
/// let result = tree_magic::match_u8("image/gif", input);
Expand Down Expand Up @@ -372,7 +372,7 @@ pub fn match_u8(mimetype: &str, bytes: &[u8]) -> bool
/// /// it will return None.
///
/// // Load a ZIP file
/// let input: &[u8] = include_bytes!("tests/application/zip");
/// let input: &[u8] = include_bytes!("../tests/application/zip");
///
/// // Get the graph node for ZIP
/// let zipnode = tree_magic::TYPE.hash.get("application/zip").unwrap();
Expand All @@ -393,7 +393,7 @@ pub fn from_u8_node(parentnode: NodeIndex, bytes: &[u8]) -> Option<MIME>
/// # Examples
/// ```rust
/// // Load a GIF file
/// let input: &[u8] = include_bytes!("tests/image/gif");
/// let input: &[u8] = include_bytes!("../tests/image/gif");
///
/// // Find the MIME type of the GIF
/// let result = tree_magic::from_u8(input);
Expand Down

0 comments on commit b992414

Please sign in to comment.