Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Mar 30, 2024
1 parent 7c55f30 commit e281172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Source {
///
/// Since no parsing is done at this stage, only IO or encoding errors will be returned,
/// regardless of the validity of the syntax in the file.
pub fn from_file(path: impl AsRef<Path>) -> Result<Self, std::io::Error> {
pub fn from_file(path: impl AsRef<Path>) -> core::result::Result<Self, std::io::Error> {
std::fs::read_to_string(path.as_ref()).map(|text| Source {
text,
path: Some(path.as_ref().to_path_buf()),
Expand Down

0 comments on commit e281172

Please sign in to comment.