Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Nov 6, 2024
1 parent 90b4b26 commit ce57d7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alan/src/program/ctype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2685,7 +2685,7 @@ impl CType {
CType::TString(dep_name) => {
let program = Program::get_program();
let scope = program.scope_by_file(dep_name)?;
let out = match &**name {
match &**name {
CType::TString(n) => {
inner_type = match scope.types.get(n) {
None => {
Expand All @@ -2700,7 +2700,6 @@ impl CType {
_ => CType::fail("The name of the import must be a string"),
};
Program::return_program(program);
out
}
_ => CType::fail("TODO: Support imports beyond local directories"),
}
Expand Down

0 comments on commit ce57d7e

Please sign in to comment.