Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jimexist committed Oct 14, 2023
1 parent 37c932e commit 103081d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rs/src/protocol/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ where
pub transport: T, // FIXME: shouldn't be public
}

impl<'a, T> TBinaryInputProtocol<T>
impl<T> TBinaryInputProtocol<T>
where
T: TReadTransport,
{
Expand Down
4 changes: 2 additions & 2 deletions lib/rs/src/server/multiplexed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ mod tests {
#[test]
fn should_split_name_into_proper_separator_and_service_call() {
let ident_name = "foo:bar_call";
let (serv, call) = split_ident_name(&ident_name);
let (serv, call) = split_ident_name(ident_name);
assert_eq!(serv, Some("foo"));
assert_eq!(call, "bar_call");
}

#[test]
fn should_return_full_ident_if_no_separator_exists() {
let ident_name = "bar_call";
let (serv, call) = split_ident_name(&ident_name);
let (serv, call) = split_ident_name(ident_name);
assert_eq!(serv, None);
assert_eq!(call, "bar_call");
}
Expand Down

0 comments on commit 103081d

Please sign in to comment.