Forbid unsafe code (#38)

This commit is contained in:
Sergey "Shnatsel" Davidoff 2019-09-14 17:18:23 +02:00 committed by Danny Guo
parent 858a35c54a
commit 6d01f95259
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# strsim-rs [![Crates.io](https://img.shields.io/crates/v/strsim.svg)](https://crates.io/crates/strsim) [![Crates.io](https://img.shields.io/crates/l/strsim.svg?maxAge=2592000)](https://github.com/dguo/strsim-rs/blob/master/LICENSE) [![build status](https://travis-ci.org/dguo/strsim-rs.svg?branch=master)](https://travis-ci.org/dguo/strsim-rs)
# strsim-rs [![Crates.io](https://img.shields.io/crates/v/strsim.svg)](https://crates.io/crates/strsim) [![Crates.io](https://img.shields.io/crates/l/strsim.svg?maxAge=2592000)](https://github.com/dguo/strsim-rs/blob/master/LICENSE) [![build status](https://travis-ci.org/dguo/strsim-rs.svg?branch=master)](https://travis-ci.org/dguo/strsim-rs) [![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
[Rust](https://www.rust-lang.org) implementations of [string similarity metrics]:
- [Hamming]

View File

@ -1,5 +1,7 @@
//! This library implements string similarity metrics.
#![forbid(unsafe_code)]
use std::char;
use std::cmp::{max, min};
use std::collections::HashMap;