dprint 0.11.1

Binary for dprint code formatter—a pluggable and configurable code formatting platform.
1
2
3
4
5
6
7
8
pub fn get_bytes_hash(bytes: &[u8]) -> u64 {
    use std::hash::Hasher;
    use twox_hash::XxHash64;

    let mut hasher = XxHash64::default();
    hasher.write(bytes);
    hasher.finish()
}