File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ impl File {
166
166
///
167
167
/// # Examples
168
168
///
169
- /// ```rust
169
+ /// ```rust,no_run
170
170
/// use chrono::prelude::*;
171
171
/// use gloo_file::File;
172
172
///
@@ -177,8 +177,8 @@ impl File {
177
177
/// Some("text/plain"),
178
178
/// Some(Utc::now().into())
179
179
/// );
180
- /// assert_eq!(example_file.name(), "motivation.txt".into( ));
181
- /// assert_eq!(example_file.raw_mime_type(), "text/plain".into( ));
180
+ /// assert_eq!(example_file.name(), String::from( "motivation.txt"));
181
+ /// assert_eq!(example_file.raw_mime_type(), String::from( "text/plain"));
182
182
/// ```
183
183
pub fn new_with_options < T > (
184
184
name : & str ,
@@ -231,7 +231,7 @@ impl File {
231
231
/// [`chrono`](https://docs.rs/chrono/0.4.10/chrono/) to work with more user-friendly
232
232
/// representations of time. For example:
233
233
///
234
- /// ```rust
234
+ /// ```rust,no_run
235
235
/// use chrono::prelude::*;
236
236
/// use gloo_file::File;
237
237
///
You can’t perform that action at this time.
0 commit comments