mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
chore: fix clippy warns
This commit is contained in:
parent
53f27394fb
commit
a302235c54
5 changed files with 13 additions and 18 deletions
|
@ -278,7 +278,7 @@ impl Input {
|
|||
|
||||
pub fn read(&mut self) -> String {
|
||||
match &mut self.kind {
|
||||
InputKind::File(filename) => match VFS.read(&filename) {
|
||||
InputKind::File(filename) => match VFS.read(filename.as_path()) {
|
||||
Ok(s) => s,
|
||||
Err(e) => {
|
||||
let code = e.raw_os_error().unwrap_or(1);
|
||||
|
@ -589,7 +589,7 @@ impl Input {
|
|||
/// 4. `{path/to}/__pycache__/__init__.d.er`
|
||||
/// 5. `{path.d/to.d}/__init__.d.er`
|
||||
/// 6. `{path.d/to.d}/__pycache__/__init__.d.er`
|
||||
/// (and repeat for the project root)
|
||||
/// * (and repeat for the project root)
|
||||
/// 7. `std/{path/to}.d.er`
|
||||
/// 8. `std/{path/to}/__init__.d.er`
|
||||
/// 9. `pkgs/{path/to}/src/lib.d.er`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue