Fix Clippy warning

This commit is contained in:
Chris Wong 2017-11-02 19:52:40 +13:00
parent 984254f870
commit 53c49c71cb

View file

@ -20,8 +20,7 @@ pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool {
impl ty::item_path::ItemPathBuffer for AbsolutePathBuffer {
fn root_mode(&self) -> &ty::item_path::RootMode {
const ABSOLUTE: &'static ty::item_path::RootMode = &ty::item_path::RootMode::Absolute;
ABSOLUTE
&ty::item_path::RootMode::Absolute
}
fn push(&mut self, text: &str) {