Skip to content

Commit 136ce62

Browse files
committed
Save config with &mut self
1 parent 046f0f9 commit 136ce62

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

Cargo.lock

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ members = [
1515
resolver = "2"
1616

1717
[workspace.package]
18-
version = "0.32.0"
18+
version = "0.33.0"
1919
authors = [
2020
"University of Helsinki <mooc@cs.helsinki.fi>",
2121
"Daniel Martinez <daniel.x.martinez@helsinki.fi>",

crates/tmc-langs/src/config/tmc_config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl TmcConfig {
142142
}
143143

144144
/// Saves the config struct to the given path.
145-
pub fn save(self) -> Result<(), LangsError> {
145+
pub fn save(&mut self) -> Result<(), LangsError> {
146146
let path = &self.location;
147147
log::info!("Saving config at {}", path.display());
148148

0 commit comments

Comments
 (0)