Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphaël Gomès
micro-timer
Commits
7f78d0476cb9
Commit
185967a6
authored
Jun 02, 2020
by
Raphaël Gomès
Browse files
Don't use str::as_mut_ptr in tests since it's not stable in 1.34.2
parent
1a25b8961f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/compilation.rs
View file @
7f78d047
...
...
@@ -74,5 +74,6 @@ fn test_mut_pointer() {
}
let
mut
s
=
String
::
new
();
thing
(
s
.as_mut_ptr
());
// `as_mut_ptr` is not stable in 1.34.2
thing
(
s
.as_mut_str
()
as
*
mut
str
as
*
mut
u8
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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