Skip to content

Commit

Permalink
chore: use vs cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Jul 23, 2020
1 parent a6b3080 commit 85d5b34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/action/bandaid.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::span::Span;
use crate::suggestion::Suggestion;
use anyhow::{anyhow, bail, Error, Result};
use anyhow::{bail, Error, Result};
use log::trace;
use std::convert::TryFrom;

Expand Down Expand Up @@ -67,7 +67,7 @@ impl From<(String, Span)> for BandAid {
pub(crate) mod tests {
use super::*;
use crate::span::Span;
use anyhow::bail;
use anyhow::anyhow;
use proc_macro2::LineColumn;
use std::io::Read;
use std::path::Path;
Expand Down
2 changes: 1 addition & 1 deletion src/documentation/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl TryFrom<proc_macro2::Literal> for TrimmedLiteral {
log::trace!(target: "quirks", "Dealing with #[doc=r####\"...\"#### style comment");
span.start.column += pre;
span.end.column -= post;
if let Some(span_len) = span.one_line_len() {
if let Some(_span_len) = span.one_line_len() {
span.end.column = span.end.column.saturating_sub(1);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/documentation/literalset.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub use super::{TrimmedLiteral, TrimmedLiteralDisplay};
use crate::{CheckableChunk, Range, Span};
use crate::{CheckableChunk, Range};
/// A set of consecutive literals.
///
/// Provides means to render them as a code block
Expand Down

0 comments on commit 85d5b34

Please sign in to comment.