Skip to content

Commit 1bc359b

Browse files
authored
Merge pull request #1 from petrochenkov/master
Fix illegal default type parameters
2 parents e9fbb9a + 88343eb commit 1bc359b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sender.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use {Sender};
99

1010
impl<'a, C: 'a, S: ActiveStream> Sender<'a, C, S> {
1111
/// Send a generic number with current timestamp
12-
pub fn add_value<N, V=i64>(&mut self, name: N, value: V)
12+
pub fn add_value<N, V>(&mut self, name: N, value: V)
1313
where N: Display, V: Num + Display
1414
{
1515
// Unfortunately we skip everything if connection is not established
@@ -23,7 +23,7 @@ impl<'a, C: 'a, S: ActiveStream> Sender<'a, C, S> {
2323
});
2424
}
2525
/// Send a generic number with specific timestamp
26-
pub fn add_value_at<N, V=i64>(&mut self, name: N, value: V, ts: u64)
26+
pub fn add_value_at<N, V>(&mut self, name: N, value: V, ts: u64)
2727
where N: Display, V: Num + Display
2828
{
2929
// Unfortunately we skip everything if connection is not established

0 commit comments

Comments
 (0)