From 4dccdb33abf3538e0259483ac474a488c74ffa1d Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 13 May 2021 22:06:05 +0300 Subject: [PATCH] Fix comment formatting. The module comment should use "//!" instead of "///". Otherwise, it is considered to apply to the *next* thing, in this case the "use" statement that follows, not the file as whole. "cargo fmt" revealed this by insisting to move the "use crate::pg_constants" line to before the comment. --- postgres_ffi/src/relfile_utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/postgres_ffi/src/relfile_utils.rs b/postgres_ffi/src/relfile_utils.rs index 4995dcbd2c..d6be630711 100644 --- a/postgres_ffi/src/relfile_utils.rs +++ b/postgres_ffi/src/relfile_utils.rs @@ -1,8 +1,8 @@ -/// -/// Common utilities for dealing with PostgreSQL relation files. -/// -use regex::Regex; +//! +//! Common utilities for dealing with PostgreSQL relation files. +//! use crate::pg_constants; +use regex::Regex; #[derive(Debug, Clone, thiserror::Error, PartialEq)] pub enum FilePathError {