Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from mcoffin/extend-335_removal-of-getident
Browse files Browse the repository at this point in the history
ioreg: Fix type mismatches
  • Loading branch information
LamentOfHeroes committed Jul 31, 2015
2 parents f1ff3b9 + 9b9901d commit f64ad8e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion ioreg/src/builder/accessors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use syntax::ptr::P;
use syntax::ext::base::ExtCtxt;
use syntax::ext::build::AstBuilder;
use syntax::ext::quote::rt::ToTokens;
use syntax::parse::token;

use super::Builder;
use super::utils;
Expand Down
5 changes: 2 additions & 3 deletions ioreg/src/builder/getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ use syntax::ext::base::ExtCtxt;
use syntax::codemap::{respan, Span};
use syntax::ext::build::AstBuilder;
use syntax::ext::quote::rt::ToTokens;
use syntax::parse::token;

use super::Builder;
use super::super::node;
Expand Down Expand Up @@ -75,8 +74,8 @@ fn build_type(cx: &ExtCtxt, path: &Vec<String>,
.expect("Unexpected non-primitive register");
let name = utils::getter_name(cx, path);
let reg_doc = match reg.docstring {
Some(d) => d.node.name.as_str(),
None => "no documentation".to_string(),
Some(d) => String::from(d.node.name.as_str().deref()),
None => String::from("no documentation"),
};
let docstring = format!("`{}`: {}", reg.name.node, reg_doc);
let doc_attr = utils::doc_attribute(cx, utils::intern_string(cx, docstring));
Expand Down
1 change: 0 additions & 1 deletion ioreg/src/builder/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use syntax::codemap::{respan, mk_sp};
use syntax::ext::base::ExtCtxt;
use syntax::ext::build::AstBuilder;
use syntax::ext::quote::rt::ToTokens;
use syntax::parse::token;

use super::Builder;
use super::utils;
Expand Down
1 change: 0 additions & 1 deletion ioreg/src/builder/setter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use syntax::ptr::P;
use syntax::ext::base::ExtCtxt;
use syntax::ext::build::AstBuilder;
use syntax::ext::quote::rt::ToTokens;
use syntax::parse::token;

use super::Builder;
use super::super::node;
Expand Down
1 change: 0 additions & 1 deletion ioreg/src/builder/union.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use syntax::ast_util::empty_generics;
use syntax::codemap::{DUMMY_SP, dummy_spanned, respan, Spanned};
use syntax::ext::base::ExtCtxt;
use syntax::ext::build::AstBuilder;
use syntax::parse::token;

use node;
use super::Builder;
Expand Down

0 comments on commit f64ad8e

Please sign in to comment.