Skip to content

Commit

Permalink
Fix some error format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Feb 26, 2024
1 parent 515d62f commit 06f8afc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mullvad-daemon/src/settings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ impl SettingsPersister {
/// ```ignore
/// #[derive(Debug, thiserror::Error)]
/// pub enum MyError {
/// #[error("Failed for this reason: {:?}", _0)]
/// #[error("Failed for this reason: {0:?}")]
/// Failed(String),
/// }
///
Expand Down
2 changes: 1 addition & 1 deletion talpid-core/src/dns/linux/static_resolv_conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub enum Error {
#[error("Failed to read from {0}")]
ReadResolvConf(&'static str, #[source] io::Error),

#[error("resolv.conf at {} could not be parsed", _0)]
#[error("resolv.conf at {0} could not be parsed")]
Parse(&'static str, #[source] resolv_conf::ParseError),

#[error("Failed to remove stale resolv.conf backup at {0}")]
Expand Down
2 changes: 1 addition & 1 deletion talpid-dbus/src/network_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub enum Error {
#[error("NetworkManager is too old: {0}.{1}")]
NMTooOld(u32, u32),

#[error("NetworkManager is too new to manage DNS: {0}.{0}")]
#[error("NetworkManager is too new to manage DNS: {0}.{1}")]
NMTooNewFroDns(u32, u32),

#[error("Failed to parse NetworkManager version string: {0}")]
Expand Down
2 changes: 1 addition & 1 deletion talpid-tunnel/src/tun_provider/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub enum Error {
#[error("Failed to create Java VM handle clone")]
CloneJavaVm(#[source] jnix::jni::errors::Error),

#[error("Failed to find TalpidVpnService.{} method", _0)]
#[error("Failed to find TalpidVpnService.{0} method")]
FindMethod(&'static str, #[source] jnix::jni::errors::Error),

#[error("Attempt to configure the tunnel with an invalid DNS server address(es): {0:?}")]
Expand Down

0 comments on commit 06f8afc

Please sign in to comment.