Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gutter misalignments #139

Merged
merged 1 commit into from
Dec 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions codespan/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl fmt::Debug for LineIndex {

impl fmt::Display for LineIndex {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
self.0.fmt(f)
}
}

Expand All @@ -73,7 +73,7 @@ impl fmt::Debug for LineNumber {

impl fmt::Display for LineNumber {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
self.0.fmt(f)
}
}

Expand All @@ -99,7 +99,7 @@ impl fmt::Debug for LineOffset {

impl fmt::Display for LineOffset {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
self.0.fmt(f)
}
}

Expand Down Expand Up @@ -144,7 +144,7 @@ impl fmt::Debug for ColumnIndex {

impl fmt::Display for ColumnIndex {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
self.0.fmt(f)
}
}

Expand All @@ -164,7 +164,7 @@ impl fmt::Debug for ColumnNumber {

impl fmt::Display for ColumnNumber {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
self.0.fmt(f)
}
}

Expand Down Expand Up @@ -223,7 +223,7 @@ impl fmt::Debug for ByteIndex {

impl fmt::Display for ByteIndex {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
self.0.fmt(f)
}
}

Expand Down Expand Up @@ -285,7 +285,7 @@ impl fmt::Debug for ByteOffset {

impl fmt::Display for ByteOffset {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
self.0.fmt(f)
}
}

Expand Down