From 9ce4d35bd632bb98b5b1ae6fc62b763c7f48b758 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 18 Jul 2020 21:03:59 +0100 Subject: [PATCH] rename trait --- src/bin/slotmap-slot-idx-test.rs | 2 +- src/slotmap-slot-idx.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/slotmap-slot-idx-test.rs b/src/bin/slotmap-slot-idx-test.rs index 08c46939..07558011 100644 --- a/src/bin/slotmap-slot-idx-test.rs +++ b/src/bin/slotmap-slot-idx-test.rs @@ -20,7 +20,7 @@ fn main () { for (&i,o) in input.iter().zip(output.iter_mut()) { let kd = slotmap::KeyData::from_ffi(i); - let (vsn,_) = slotmap_slot_idx::KeyData::get_idx_version(kd); + let (vsn,_) = slotmap_slot_idx::KeyDataExt::get_idx_version(kd); *o = vsn; } diff --git a/src/slotmap-slot-idx.rs b/src/slotmap-slot-idx.rs index c764dab5..5f67315f 100644 --- a/src/slotmap-slot-idx.rs +++ b/src/slotmap-slot-idx.rs @@ -3,11 +3,11 @@ use serde::ser::{self,*}; use thiserror::Error; use std::line; -pub trait KeyData { +pub trait KeyDataExt { fn get_idx_version(self) -> (u32, u32); } -impl KeyData for slotmap::KeyData { +impl KeyDataExt for slotmap::KeyData { fn get_idx_version(self) -> (u32, u32) { keydata_extract(self).unwrap() } -- 2.30.2