Skip to content

Commit c46dbae

Browse files
committed
Update lockfile in uv add --script
1 parent 8eef27e commit c46dbae

File tree

6 files changed

+184
-124
lines changed

6 files changed

+184
-124
lines changed

crates/uv-scripts/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ impl Pep723Script {
189189
}
190190

191191
/// Replace the existing metadata in the file with new metadata and write the updated content.
192-
pub async fn write(&self, metadata: &str) -> Result<(), Pep723Error> {
192+
pub fn write(&self, metadata: &str) -> Result<(), io::Error> {
193193
let content = format!(
194194
"{}{}{}",
195195
self.prelude,
196196
serialize_metadata(metadata),
197197
self.postlude
198198
);
199199

200-
fs_err::tokio::write(&self.path, content).await?;
200+
fs_err::write(&self.path, content)?;
201201

202202
Ok(())
203203
}
@@ -266,7 +266,7 @@ impl Pep723Metadata {
266266
}
267267

268268
impl FromStr for Pep723Metadata {
269-
type Err = Pep723Error;
269+
type Err = toml::de::Error;
270270

271271
/// Parse `Pep723Metadata` from a raw TOML string.
272272
fn from_str(raw: &str) -> Result<Self, Self::Err> {

0 commit comments

Comments
 (0)