Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "CLAiR"
version = "0.1.0"
authors = ["Pascal Hertleif <killercup@gmail.com>"]
edition = "2018"
edition = "2024"

[[bin]]
name = "cli-args-vars"
Expand Down
2 changes: 1 addition & 1 deletion src/in-depth/machine-communication-stdin.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use clap::{CommandFactory, Parser};
use std::{
fs::File,
io::{stdin, BufRead, BufReader, IsTerminal},
io::{BufRead, BufReader, IsTerminal, stdin},
path::PathBuf,
};

Expand Down
4 changes: 2 additions & 2 deletions src/in-depth/signals-channels.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::time::Duration;
use crossbeam_channel::{bounded, tick, Receiver, select};
use anyhow::Result;
use crossbeam_channel::{Receiver, bounded, select, tick};
use std::time::Duration;

fn ctrl_channel() -> Result<Receiver<()>, ctrlc::Error> {
let (sender, receiver) = bounded(100);
Expand Down
4 changes: 2 additions & 2 deletions src/tutorial/errors-exit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use anyhow::{Context, Result};

fn main() -> Result<()> {
let path = "test.txt";
let content = std::fs::read_to_string(path)
.with_context(|| format!("could not read file `{}`", path))?;
let content =
std::fs::read_to_string(path).with_context(|| format!("could not read file `{}`", path))?;
println!("file content: {}", content);
Ok(())
}
6 changes: 2 additions & 4 deletions src/tutorial/impl-draft-shortcut.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![allow(unused)]

fn main() {

let path = "test.txt";
let pattern = "foo";

let path = "test.txt";
let pattern = "foo";
}
Loading