@@ -834,8 +834,9 @@ impl Clean<Attributes> for [ast::Attribute] {
834
834
let path = {
835
835
let is_value;
836
836
let path_str = if let Some ( prefix) =
837
- [ "struct" , "enum" , "type" , "trait" , "union" ] . iter ( )
838
- . find ( |p| link. starts_with ( * * p) ) {
837
+ [ "struct" , "enum" , "type" ,
838
+ "trait" , "union" ] . iter ( )
839
+ . find ( |p| link. starts_with ( * * p) ) {
839
840
is_value = Some ( false ) ;
840
841
link. trim_left_matches ( prefix) . trim ( )
841
842
} else if let Some ( prefix) =
@@ -857,7 +858,8 @@ impl Clean<Attributes> for [ast::Attribute] {
857
858
// avoid resolving things (i.e. regular links) which aren't like paths
858
859
// FIXME(Manishearth) given that most links have slashes in them might be worth
859
860
// doing a check for slashes first
860
- if path_str. contains ( |ch : char | !( ch. is_alphanumeric ( ) || ch == ':' || ch == '_' ) ) {
861
+ if path_str. contains ( |ch : char | !( ch. is_alphanumeric ( ) ||
862
+ ch == ':' || ch == '_' ) ) {
861
863
continue ;
862
864
}
863
865
@@ -867,7 +869,8 @@ impl Clean<Attributes> for [ast::Attribute] {
867
869
if let Some ( id) = cx. mod_ids . borrow ( ) . last ( ) {
868
870
cx. resolver . borrow_mut ( )
869
871
. with_scope ( * id, |resolver| {
870
- resolver. resolve_str_path_error ( DUMMY_SP , & path_str, is_val)
872
+ resolver. resolve_str_path_error ( DUMMY_SP ,
873
+ & path_str, is_val)
871
874
} )
872
875
} else {
873
876
// FIXME(Manishearth) this branch doesn't seem to ever be hit, really
0 commit comments