You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/pavex/libs/pavexc/src/diagnostic/miette
    
    the code of the file until where you have to start completion: use miette::{LabeledSpan, SourceOffset, SourceSpan};

/// Helper methods to reduce bo
    
pub fn convert_rustdoc_span(source: &str, span: rustdoc_types::Span) -> SourceSpan {
    // No idea why the +1 is required, but I kept getting labeled spans that were _consistently_
    // shifted by one character. So...
    let start = SourceOffset::from_location(source, span.begin.0, span.begin.1 + 1);
    let end = SourceOffset::from_location(source, span.end.0, span.end.1 + 1);
    let len = end.offset() - start.offset();
    SourceSpan::from((start.offset(), len))
}