Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit bfbc877

Browse files
Merge pull request #24 from whatisinternet/chore/stable-fixes
Chore/stable fixes
2 parents 1de902a + b32a422 commit bfbc877

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Inflector"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Josh Teeter<[email protected]>"]
55
exclude = [".travis.yml", ".gitignore"]
66
readme = "README.md"
@@ -20,5 +20,5 @@ name = "inflector"
2020
path = "src/lib.rs"
2121

2222
[dependencies]
23-
regex = "0.1.41"
23+
regex = "0.1.73"
2424
lazy_static = "0.2.1"

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![deny(warnings)]
22

3-
//! [![Build Status](https://travis-ci.org/whatisinternet/inflector.svg?branch=master)](https://travis-ci.org/whatisinternet/inflector) [![Crates.io](https://img.shields.io/crates/v/inflector.svg)](https://crates.io/crates/inflector)
4-
53
//! Adds String based inflections for Rust. Snake, kebab, camel,
64
//! sentence, class, title, upper, and lower cases as well as ordinalize,
75
//! deordinalize, demodulize, deconstantize, and foreign key are supported as

src/string/pluralize/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
#![deny(warnings)]
12
use regex::Regex;
23
use string::constants::UNACCONTABLE_WORDS;
34

45
macro_rules! add_rule{
5-
($r:ident, $rule:expr => $replace:expr) =>{
6+
($r:ident, $rule:expr => $replace:expr) => {
67
$r.push((Regex::new($rule).unwrap(), $replace));
78
}
89
}
910

1011
macro_rules! rules{
11-
($r:ident; $($rule:expr => $replace:expr), *) =>{
12+
($r:ident; $($rule:expr => $replace:expr), *) => {
1213
$(
13-
add_rule!($r, $rule => $replace)
14+
add_rule!{$r, $rule => $replace}
1415
)*
1516
}
1617
}

0 commit comments

Comments
 (0)