Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jack Wrenn
frequency
Commits
1045a98b
Commit
1045a98b
authored
Mar 25, 2017
by
Jack Wrenn
Browse files
Wrong type on `new` constructor.
parent
76082105
Changes
2
Hide whitespace changes
Inline
Side-by-side
hashmap/Cargo.toml
View file @
1045a98b
[package]
name
=
"frequency-hashmap"
version
=
"1.
0
.0"
version
=
"1.
1
.0"
authors
=
[
"Jack Wrenn <me@jswrenn.com>"
]
license
=
"MIT"
readme
=
"README.md"
...
...
hashmap/src/lib.rs
View file @
1045a98b
...
...
@@ -94,7 +94,7 @@ impl<T, N, S> HashMapFrequency<T, N, S>
/// Creates an empty `HashMapFrequency`, a frequency counter backed
/// by a HashMap.
#[inline]
pub
fn
new
()
->
HashMap
<
T
,
S
>
{
pub
fn
new
()
->
HashMap
Frequency
<
T
,
N
,
S
>
{
Default
::
default
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment