diff --git a/src/client.d b/src/client.d index 7e8c920..f1904ff 100644 --- a/src/client.d +++ b/src/client.d @@ -87,7 +87,7 @@ int main(string[] args) request.kind = RequestKind.query; if (sendRequest(socket, request)) { - AutocompleteResponse response = getResponse(socket); + const AutocompleteResponse response = getResponse(socket); if (response.completionType == "ack") { writeln("Server is running"); @@ -134,7 +134,7 @@ int main(string[] args) } // Read in the source - bool usingStdin = args.length <= 1; + immutable bool usingStdin = args.length <= 1; string fileName = usingStdin ? "stdin" : args[1]; if (!usingStdin && !exists(args[1])) { diff --git a/src/conversion/first.d b/src/conversion/first.d index e7621bc..463266e 100644 --- a/src/conversion/first.d +++ b/src/conversion/first.d @@ -273,7 +273,7 @@ final class FirstPass : ASTVisitor protection = dec.attributeDeclaration.attribute.attribute.type; return; } - IdType p = protection; + immutable IdType p = protection; foreach (const Attribute attr; dec.attributes) { if (isProtection(attr.attribute.type))