Skip to content

Commit cd75b82

Browse files
committed
Clean up documentation
1 parent 41f24c2 commit cd75b82

4 files changed

Lines changed: 8 additions & 10 deletions

File tree

rustfmt.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ edition = "2024"
22
max_width = 100
33
use_small_heuristics = "Max"
44
reorder_imports = true
5-
reorder_modules = true
6-
imports_granularity = "Crate"
7-
group_imports = "StdExternalCrate"
5+
reorder_modules = true

src/comments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl Comments {
207207
/// Build all leading comments from a parsed SQL file
208208
///
209209
/// # Parameters
210-
/// - `file`: the [`ParsedSqlFile`] that needs to be parsed for comments
210+
/// - `file`: the [`ParsedSqlSource`] that needs to be parsed for comments
211211
///
212212
/// # Errors
213213
/// - Will return [`CommentError::UnmatchedMultilineCommentStart`] if a

src/docs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ impl TableDoc {
175175
columns.sort_by(|a, b| a.name().cmp(b.name()));
176176
Self { schema, name, doc, columns, path }
177177
}
178-
/// Getter method for retrieving the table's [`Path`]
178+
/// Getter method for retrieving the table's [`std::path::Path`]
179179
#[must_use]
180180
pub fn path(&self) -> Option<&std::path::Path> {
181181
self.path.as_deref()
182182
}
183-
/// Setter for updating the table [`PathBuf`] source
183+
/// Setter for updating the table [`std::path::PathBuf`] source
184184
pub fn set_path(&mut self, path: Option<impl Into<std::path::PathBuf>>) {
185185
self.path = path.map(Into::into);
186186
}
@@ -234,7 +234,7 @@ impl SqlFileDoc {
234234
/// - Comment spans into a format suitable for documentation generation.
235235
///
236236
/// # Parameters
237-
/// - `source`: the [`ParsedSqlFile`]
237+
/// - `source`: the [`ParsedSqlSource`]
238238
/// - `comments`: the parsed [`Comments`]
239239
///
240240
/// # Errors

src/source.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl SqlSource {
3131
/// Loads a [`SqlSource`] from the given path.
3232
///
3333
/// # Errors
34-
/// - Returns an [`io::Error`] if the file cannot be read.
34+
/// - Returns an [`std::io::Error`] if the file cannot be read.
3535
pub fn from_path(path: &std::path::Path) -> std::io::Result<Self> {
3636
let source = crate::files::SqlContent::from_path(path)?;
3737
let content = source.content().to_owned();
@@ -49,7 +49,7 @@ impl SqlSource {
4949
pub fn path(&self) -> Option<&std::path::Path> {
5050
self.path.as_deref()
5151
}
52-
/// Returns the [`PathBuf`] for the current path
52+
/// Returns the [`std::path::PathBuf`] for the current path
5353
#[must_use]
5454
pub fn path_into_path_buf(&self) -> Option<std::path::PathBuf> {
5555
self.path.clone()
@@ -65,7 +65,7 @@ impl SqlSource {
6565
///
6666
/// # Errors
6767
///
68-
/// Returns an [`io::Error`] if directory traversal fails or if any of the
68+
/// Returns an [`std::io::Error`] if directory traversal fails or if any of the
6969
/// discovered SQL files cannot be read.
7070
#[cfg(feature = "std")]
7171
pub fn sql_sources(path: &std::path::Path, deny_list: &[String]) -> std::io::Result<Vec<Self>> {

0 commit comments

Comments
 (0)