Skip to content

Commit

Permalink
Removes redundant explicit link targets [minor]
Browse files Browse the repository at this point in the history
because label contains path that resolves to the same destination
  • Loading branch information
hoijui authored and Tpt committed Nov 12, 2023
1 parent 51db526 commit 5f4f38c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/src/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
use crate::model::{Quad, Triple};
use std::error::Error;

/// A formatter for [`Triple`](super::model::Triple).
/// A formatter for [`Triple`].
pub trait TriplesFormatter {
type Error: Error;

/// Writes a triple
fn format(&mut self, triple: &Triple<'_>) -> Result<(), Self::Error>;
}

/// A formatter for [`Quad`](super::model::Quad).
/// A formatter for [`Quad`].
pub trait QuadsFormatter {
type Error: Error;

Expand Down
8 changes: 4 additions & 4 deletions api/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub use crate::generalized::parser::*;
use crate::model::{Quad, Triple};
use std::error::Error;

/// A parser returning [`Triple`](super::model::Triple).
/// A parser returning [`Triple`].
pub trait TriplesParser: Sized {
type Error: Error;

Expand Down Expand Up @@ -40,7 +40,7 @@ pub trait TriplesParser: Sized {

/// Converts the parser into a `Result<T, E>` iterator.
///
/// `convert_triple` is a function converting Rio [`Triple`](super::model::Triple) to `T`.
/// `convert_triple` is a function converting Rio [`Triple`] to `T`.
fn into_iter<T, E: From<Self::Error>, F: FnMut(Triple<'_>) -> Result<T, E>>(
self,
convert_triple: F,
Expand Down Expand Up @@ -91,7 +91,7 @@ impl<T, E: From<P::Error>, F: FnMut(Triple<'_>) -> Result<T, E>, P: TriplesParse
}
}

/// A parser returning [`Quad`](super::model::Quad).
/// A parser returning [`Quad`].
pub trait QuadsParser: Sized {
type Error: Error;

Expand Down Expand Up @@ -124,7 +124,7 @@ pub trait QuadsParser: Sized {

/// Converts the parser into a `Result<T, E>` iterator.
///
/// `convert_triple` is a function converting Rio [`Triple`](super::model::Triple) to `T`.
/// `convert_triple` is a function converting Rio [`Triple`] to `T`.
fn into_iter<T, E: From<Self::Error>, F: FnMut(Quad<'_>) -> Result<T, E>>(
self,
convert_quad: F,
Expand Down

0 comments on commit 5f4f38c

Please sign in to comment.