Skip to content

Commit

Permalink
Fix deprecation Identity (#134)
Browse files Browse the repository at this point in the history
* fix deprecation visibility Identity

* fixup
  • Loading branch information
timotheecour authored and msoucy committed Mar 9, 2018
1 parent e8cc943 commit b52ef1c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions import/dproto/attributes.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import dproto.serialize;
import painlesstraits : getAnnotation, hasValueAnnotation;
import dproto.compat;

import std.traits : isArray, Identity;
import std.traits : isArray;
import std.typecons : Nullable;

alias Identity(alias A) = A;

struct ProtoField
{
string wireType;
Expand Down Expand Up @@ -64,7 +66,6 @@ template ProtoAccessors()
if(isProtoOutputRange!R)
{
import dproto.attributes;
import std.traits : Identity;
foreach(__member; ProtoFields!this) {
alias __field = Identity!(__traits(getMember, this, __member));
serializeField!__field(__r);
Expand All @@ -74,7 +75,6 @@ template ProtoAccessors()
void deserialize(R)(auto ref R __r)
if(isProtoInputRange!R)
{
import std.traits : Identity;
import dproto.attributes;
import painlesstraits : getAnnotation;

Expand All @@ -97,7 +97,6 @@ template ProtoAccessors()

void mergeFrom(this This)(auto ref This rhs)
{
import std.traits : Identity;
import dproto.attributes;

foreach(__member; ProtoFields!this) {
Expand Down

0 comments on commit b52ef1c

Please sign in to comment.