summaryrefslogtreecommitdiffstats
path: root/src/git/delta.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git/delta.rs')
-rw-r--r--src/git/delta.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/git/delta.rs b/src/git/delta.rs
index 46be77d..ac44ec3 100644
--- a/src/git/delta.rs
+++ b/src/git/delta.rs
@@ -13,7 +13,6 @@ pub(crate) struct Delta {
impl Delta {
/// Create a new `Delta`.
- #[inline]
#[must_use]
pub(crate) fn new(
header: &str,
@@ -34,48 +33,41 @@ impl Delta {
}
/// Add a `DiffLine`.
- #[inline]
pub(crate) fn add_line(&mut self, diff_line: DiffLine) {
self.lines.push(diff_line);
}
/// Get the diff context.
- #[inline]
#[must_use]
pub(crate) fn context(&self) -> &str {
self.context.as_str()
}
/// Get the lines.
- #[inline]
#[must_use]
pub(crate) const fn lines(&self) -> &Vec<DiffLine> {
&self.lines
}
/// Get the old lines start.
- #[inline]
#[must_use]
pub(crate) const fn old_lines_start(&self) -> u32 {
self.old_lines_start
}
/// Get the old number of lines
- #[inline]
#[must_use]
pub(crate) const fn old_number_lines(&self) -> u32 {
self.old_number_lines
}
/// Get the new lines start.
- #[inline]
#[must_use]
pub(crate) const fn new_lines_start(&self) -> u32 {
self.new_lines_start
}
/// Get the new number of lines.
- #[inline]
#[must_use]
pub(crate) const fn new_number_lines(&self) -> u32 {
self.new_number_lines