Skip to content

Commit 1d5f050

Browse files
committed
Fix ci failure.
1 parent 29ca6d2 commit 1d5f050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/file/src/blob.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl File {
166166
///
167167
/// # Examples
168168
///
169-
/// ```rust
169+
/// ```rust,no_run
170170
/// use chrono::prelude::*;
171171
/// use gloo_file::File;
172172
///
@@ -177,8 +177,8 @@ impl File {
177177
/// Some("text/plain"),
178178
/// Some(Utc::now().into())
179179
/// );
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"));
182182
/// ```
183183
pub fn new_with_options<T>(
184184
name: &str,
@@ -231,7 +231,7 @@ impl File {
231231
/// [`chrono`](https://docs.rs/chrono/0.4.10/chrono/) to work with more user-friendly
232232
/// representations of time. For example:
233233
///
234-
/// ```rust
234+
/// ```rust,no_run
235235
/// use chrono::prelude::*;
236236
/// use gloo_file::File;
237237
///

0 commit comments

Comments
 (0)