Skip to content

Commit

Permalink
name is required operation for FieldAccessor
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Oct 29, 2014
1 parent 1a2733a commit 4e8193b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/reflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ use std::collections::HashMap;

/// this trait should not be used directly, use `FieldDescriptor` instead
pub trait FieldAccessor<M : Message> {
fn name(&self) -> &'static str {
fail!("TODO");
}
fn name(&self) -> &'static str;

fn has_field(&self, _m: &M) -> bool {
fail!();
Expand Down

0 comments on commit 4e8193b

Please sign in to comment.