Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dotdat committed Sep 25, 2024
1 parent 4d5e863 commit 0704082
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/rover-std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ impl Fs {
Ok(events) => events,
};
for event in events {
if let EventKind::Modify(ModifyKind::Data(data)) = event.kind {
if let EventKind::Modify(ModifyKind::Data(_)) = event.kind {
if let Err(err) = tx.send(Ok(())) {
handle_generic_error(&tx, &path, err);
break;
Expand Down Expand Up @@ -453,8 +453,7 @@ mod tests {

#[tokio::test]
async fn test_watch_file() -> Result<()> {
let dir = tempdir()?;
let mut file = NamedTempFile::new_in(&dir)?;
let mut file = NamedTempFile::new()?;
let path = Utf8PathBuf::from_path_buf(file.path().to_path_buf())
.unwrap_or_else(|path| panic!("Unable to create Utf8PathBuf from path: {:?}", path));
let (tx, rx) = unbounded_channel();
Expand Down

0 comments on commit 0704082

Please sign in to comment.