comparison rust/hg-core/src/utils/files.rs @ 42751:4b3b27d567d5

rust-docstrings: add missing module docstrings Differential Revision: https://phab.mercurial-scm.org/D6630
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 09 Jul 2019 14:53:34 +0200
parents cad3dde7a573
children b1b984f9c01d
comparison
equal deleted inserted replaced
42750:849e744b925d 42751:4b3b27d567d5
1 // files.rs
2 //
3 // Copyright 2019
4 // Raphaël Gomès <rgomes@octobus.net>,
5 // Yuya Nishihara <yuya@tcha.org>
6 //
7 // This software may be used and distributed according to the terms of the
8 // GNU General Public License version 2 or any later version.
9
10 //! Functions for fiddling with files.
11
1 use std::iter::FusedIterator; 12 use std::iter::FusedIterator;
2 use std::path::Path; 13 use std::path::Path;
3 14
4 pub fn get_path_from_bytes(bytes: &[u8]) -> &Path { 15 pub fn get_path_from_bytes(bytes: &[u8]) -> &Path {
5 let os_str; 16 let os_str;