changeset 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 849e744b925d
children 30320c7bf79f
files rust/hg-core/src/filepatterns.rs rust/hg-core/src/utils.rs rust/hg-core/src/utils/files.rs
diffstat 3 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/filepatterns.rs	Wed Jul 17 11:37:43 2019 +0200
+++ b/rust/hg-core/src/filepatterns.rs	Tue Jul 09 14:53:34 2019 +0200
@@ -1,3 +1,12 @@
+// filepatterns.rs
+//
+// Copyright 2019 Raphaël Gomès <rgomes@octobus.net>
+//
+// This software may be used and distributed according to the terms of the
+// GNU General Public License version 2 or any later version.
+
+//! Handling of Mercurial-specific patterns.
+
 use crate::{
     utils::{files::get_path_from_bytes, SliceExt},
     LineNumber, PatternError, PatternFileError,
--- a/rust/hg-core/src/utils.rs	Wed Jul 17 11:37:43 2019 +0200
+++ b/rust/hg-core/src/utils.rs	Tue Jul 09 14:53:34 2019 +0200
@@ -1,3 +1,12 @@
+// utils module
+//
+// Copyright 2019 Raphaël Gomès <rgomes@octobus.net>
+//
+// This software may be used and distributed according to the terms of the
+// GNU General Public License version 2 or any later version.
+
+//! Contains useful functions, traits, structs, etc. for use in core.
+
 pub mod files;
 
 use std::convert::AsMut;
--- a/rust/hg-core/src/utils/files.rs	Wed Jul 17 11:37:43 2019 +0200
+++ b/rust/hg-core/src/utils/files.rs	Tue Jul 09 14:53:34 2019 +0200
@@ -1,3 +1,14 @@
+// files.rs
+//
+// Copyright 2019
+// Raphaël Gomès <rgomes@octobus.net>,
+// Yuya Nishihara <yuya@tcha.org>
+//
+// This software may be used and distributed according to the terms of the
+// GNU General Public License version 2 or any later version.
+
+//! Functions for fiddling with files.
+
 use std::iter::FusedIterator;
 use std::path::Path;