Skip to content

Commit

Permalink
Conditionally import PyParseError so we can avoid the warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Oct 28, 2018
1 parent 306f4db commit 463a07d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ use nom::anychar;
#[cfg(feature = "unicode-names")]
use unicode_names2;

#[cfg(not(feature = "unicode-names"))]
use errors::PyParseError;

#[cfg(feature = "wtf8")]
use wtf8;

use ast::*;
use errors::PyParseError;
use helpers::StrSpan;

#[cfg(feature = "wtf8")]
Expand Down

0 comments on commit 463a07d

Please sign in to comment.