Skip to content

Commit

Permalink
Fix 2018 edition fallout.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm authored and crlf0710 committed Sep 19, 2020
1 parent 2acea93 commit e75aeac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions library/core/src/needle/ext.rs
Expand Up @@ -5,9 +5,9 @@ use super::needle::{
Needle, Searcher, ReverseSearcher, DoubleEndedSearcher,
Consumer, ReverseConsumer, DoubleEndedConsumer,
};
use iter::FusedIterator;
use ops::Range;
use fmt;
use crate::iter::FusedIterator;
use crate::ops::Range;
use crate::fmt;

macro_rules! generate_clone_and_debug {
($name:ident, $field:tt) => {
Expand All @@ -31,7 +31,7 @@ macro_rules! generate_clone_and_debug {
S: fmt::Debug,
H::Target: Hay, // FIXME: RFC 2089 or 2289
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple(stringify!($name))
.field(&self.$field)
.finish()
Expand Down
6 changes: 3 additions & 3 deletions library/core/src/needle/haystack.rs
@@ -1,5 +1,5 @@
use fmt::Debug;
use ops::{Deref, Range};
use crate::fmt::Debug;
use crate::ops::{Deref, Range};

/// Borrowed `Haystack`.
///
Expand Down Expand Up @@ -271,7 +271,7 @@ where H::Target: Hay // FIXME: RFC 2089 or 2289
{
#[inline]
default fn take(&mut self) -> Self {
::mem::replace(self, Self::empty())
crate::mem::replace(self, Self::empty())
}

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/needle/needle.rs
@@ -1,6 +1,6 @@
use super::haystack::{Haystack, Hay, Span};

use ops::Range;
use crate::ops::Range;

/// A searcher, for searching a [`Needle`] from a [`Hay`].
///
Expand Down

0 comments on commit e75aeac

Please sign in to comment.