Skip to content

Commit

Permalink
Import cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed Feb 21, 2019
1 parent 699fbe8 commit 278d66f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/arrogant/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import arrogant.c.modest;
public import arrogant.c.common;

import std.traits;
import std.conv;
import std.typecons : Nullable, Flag, Yes, No, RefCounted, RefCountedAutoInitialize;
import std.conv : to;
import std.typecons : Flag, Yes, No;
import std.string : toStringz;

/** Use this enum with `node.byAttribute()` search */
Expand Down Expand Up @@ -96,6 +96,8 @@ struct Node
/** Read an attribute from node */
auto opIndex(string attribute)
{
import std.typecons : Nullable;

Nullable!string value;
auto attr = myhtml_attribute_by_key (myhtml_tree_node, attribute.toStringz, attribute.length);

Expand Down

0 comments on commit 278d66f

Please sign in to comment.