1
This commit is contained in:
@@ -1099,7 +1099,7 @@ fn first_json_string(value: &JsonValue, key: &str) -> Option<String> {
|
||||
.map(ToOwned::to_owned)
|
||||
}
|
||||
|
||||
fn stable_ascii_slug(value: &str) -> String {
|
||||
pub(crate) fn stable_ascii_slug(value: &str) -> String {
|
||||
let mut hash = 0u32;
|
||||
for character in value.chars() {
|
||||
hash = hash.wrapping_mul(31).wrapping_add(character as u32);
|
||||
|
||||
Reference in New Issue
Block a user