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