[][src]Function rust_code_analysis::read_file_with_eol

pub fn read_file_with_eol(path: &PathBuf) -> Result<Option<Vec<u8>>>

Reads a file and adds an EOL at its end.

Examples

use std::path::PathBuf;

use rust_code_analysis::read_file_with_eol;

let path = PathBuf::from("Cargo.toml");
read_file_with_eol(&path).unwrap();