| ... | ... | @@ -1060,8 +1060,8 @@ fn buildOutputType( |
| 1060 | 1060 | } |
| 1061 | 1061 | } else if (mem.eql(u8, arg, "--dep")) { |
| 1062 | 1062 | var it = mem.splitScalar(u8, args_iter.nextOrFatal(), '='); |
| 1063 | | const key = it.next().?; |
| 1064 | | const value = it.next() orelse key; |
| 1063 | const key = it.first(); |
| 1064 | const value = if (it.peek() != null) it.rest() else key; |
| 1065 | 1065 | if (mem.eql(u8, key, "std") and !mem.eql(u8, value, "std")) { |
| 1066 | 1066 | fatal("unable to import as '{s}': conflicts with builtin module", .{ |
| 1067 | 1067 | key, |
| ... | ... | @@ -1080,8 +1080,8 @@ fn buildOutputType( |
| 1080 | 1080 | }); |
| 1081 | 1081 | } else if (mem.startsWith(u8, arg, "-M")) { |
| 1082 | 1082 | var it = mem.splitScalar(u8, arg["-M".len..], '='); |
| 1083 | | const mod_name = it.next().?; |
| 1084 | | const root_src_orig = it.next(); |
| 1083 | const mod_name = it.first(); |
| 1084 | const root_src_orig = if (it.peek() != null) it.rest() else null; |
| 1085 | 1085 | try handleModArg( |
| 1086 | 1086 | arena, |
| 1087 | 1087 | mod_name, |