]> git.lizzy.rs Git - rust.git/blobdiff - src/codemap.rs
Remove BlockIndentStyle::Inherit
[rust.git] / src / codemap.rs
index 9ec5c6630640bf97b8d4f3fa48754cc7b0c6c316..602ab5c98be57ef1f55ba6ee4119f46ddc9a3459 100644 (file)
@@ -26,7 +26,10 @@ pub struct LineRange {
 
 impl LineRange {
     pub fn file_name(&self) -> &str {
-        self.file.as_ref().name.as_str()
+        self.file
+            .as_ref()
+            .name
+            .as_str()
     }
 }
 
@@ -46,7 +49,6 @@ pub trait LineRangeUtils {
 }
 
 impl SpanUtils for CodeMap {
-    #[inline]
     fn span_after(&self, original: Span, needle: &str) -> BytePos {
         let snippet = self.span_to_snippet(original).unwrap();
         let offset = snippet.find_uncommented(needle).unwrap() + needle.len();
@@ -54,7 +56,6 @@ fn span_after(&self, original: Span, needle: &str) -> BytePos {
         original.lo + BytePos(offset as u32)
     }
 
-    #[inline]
     fn span_after_last(&self, original: Span, needle: &str) -> BytePos {
         let snippet = self.span_to_snippet(original).unwrap();
         let mut offset = 0;
@@ -66,7 +67,6 @@ fn span_after_last(&self, original: Span, needle: &str) -> BytePos {
         original.lo + BytePos(offset as u32)
     }
 
-    #[inline]
     fn span_before(&self, original: Span, needle: &str) -> BytePos {
         let snippet = self.span_to_snippet(original).unwrap();
         let offset = snippet.find_uncommented(needle).unwrap();