Skip to content

Commit 7d1414a

Browse files
Apply clippy suggestions
1 parent 8935892 commit 7d1414a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/fs/src/service.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl StorageService {
149149
Ok(ref m) => Some(
150150
m.modified()?
151151
.duration_since(SystemTime::UNIX_EPOCH)
152-
.map_err(|_| io::Error::new(io::ErrorKind::Other, "clock went backwards?!"))?
152+
.map_err(|_| io::Error::other("clock went backwards?!"))?
153153
.as_millis(),
154154
),
155155

@@ -160,7 +160,7 @@ impl StorageService {
160160
Ok(ref m) => Some(
161161
m.created()?
162162
.duration_since(SystemTime::UNIX_EPOCH)
163-
.map_err(|_| io::Error::new(io::ErrorKind::Other, "clock went backwards?!"))?
163+
.map_err(|_| io::Error::other("clock went backwards?!"))?
164164
.as_millis(),
165165
),
166166

@@ -191,7 +191,7 @@ impl StorageService {
191191
Ok(ref m) => Some(
192192
m.modified()?
193193
.duration_since(SystemTime::UNIX_EPOCH)
194-
.map_err(|_| io::Error::new(io::ErrorKind::Other, "clock went backwards?!"))?
194+
.map_err(|_| io::Error::other("clock went backwards?!"))?
195195
.as_millis(),
196196
),
197197

@@ -202,7 +202,7 @@ impl StorageService {
202202
Ok(ref m) => Some(
203203
m.created()?
204204
.duration_since(SystemTime::UNIX_EPOCH)
205-
.map_err(|_| io::Error::new(io::ErrorKind::Other, "clock went backwards?!"))?
205+
.map_err(|_| io::Error::other("clock went backwards?!"))?
206206
.as_millis(),
207207
),
208208

@@ -460,7 +460,7 @@ impl remi::StorageService for StorageService {
460460
Ok(sys) => Some(
461461
sys.created()?
462462
.duration_since(SystemTime::UNIX_EPOCH)
463-
.map_err(|_| io::Error::new(io::ErrorKind::Other, "clock went backwards?!"))?
463+
.map_err(|_| io::Error::other("clock went backwards?!"))?
464464
.as_millis(),
465465
),
466466

0 commit comments

Comments
 (0)